1DateTime::Format::EpochU:s:eTrJDC(o3n)tributed Perl DocuDmaetnetTaitmieo:n:Format::Epoch::TJD(3)
2
3
4

NAME

6       DateTime::Format::Epoch::TJD - Convert DateTimes to/from Truncated
7       Julian Days
8

SYNOPSIS

10         use DateTime::Format::Epoch::TJD;
11
12         my $dt = DateTime::Format::Epoch::TJD->parse_datetime( 13244.5 );
13          # 2004-08-27T00:00:00
14
15         DateTime::Format::Epoch::TJD->format_datetime($dt);
16          # 13244.5
17
18         my $formatter = DateTime::Format::Epoch::TJD->new();
19         my $dt2 = $formatter->parse_datetime( 13244.5 );
20         $formatter->format_datetime($dt2);
21

DESCRIPTION

23       This module can convert a DateTime object (or any object that can be
24       converted to a DateTime object) to the Truncated Julian Day number. See
25       DateTime::Format::Epoch::JD for a description.
26

METHODS

28       Most of the methods are the same as those in DateTime::Format::Epoch.
29       The only difference is the constructor.
30
31new()
32
33           Constructor of the formatter/parser object. It has no parameters.
34

SUPPORT

36       Support for this module is provided via the datetime@perl.org email
37       list. See http://lists.perl.org/ for more details.
38

AUTHOR

40       Eugene van der Pijll <pijll@gmx.net>
41
43       Copyright (c) 2004 Eugene van der Pijll.  All rights reserved.  This
44       program is free software; you can redistribute it and/or modify it
45       under the same terms as Perl itself.
46

SEE ALSO

48       DateTime
49
50       datetime@perl.org mailing list
51
52
53
54perl v5.36.0                      2023-01-20   DateTime::Format::Epoch::TJD(3)
Impressum