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

NAME

6       DateTime::Format::Epoch::MJD - Convert DateTimes to/from Modified
7       Julian Days
8

SYNOPSIS

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

DESCRIPTION

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

METHODS

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

SUPPORT

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

AUTHOR

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

SEE ALSO

50       DateTime
51
52       datetime@perl.org mailing list
53
54
55
56perl v5.38.0                      2023-07-20   DateTime::Format::Epoch::MJD(3)
Impressum