1DateTime::Format::EpochU:s:eRrJDC(o3n)tributed Perl DocuDmaetnetTaitmieo:n:Format::Epoch::RJD(3)
2
3
4
6 DateTime::Format::Epoch::RJD - Convert DateTimes to/from Reduced Julian
7 Days
8
10 use DateTime::Format::Epoch::RJD;
11
12 my $dt = DateTime::Format::Epoch::RJD->parse_datetime( 53244.5 );
13 # 2004-08-27T00:00:00
14 DateTime::Format::Epoch::RJD->format_datetime($dt);
15 # 53244.5
16
17 my $formatter = DateTime::Format::Epoch::RJD->new();
18
19 my $dt2 = $formatter->parse_datetime( 53244.5 );
20 # 2004-08-27T00:00:00
21
22 $formatter->format_datetime($dt2);
23 # 53244.5
24
26 This module can convert a DateTime object (or any object that can be
27 converted to a DateTime object) to the Reduced Julian Day number. See
28 DateTime::Format::Epoch::JD for a description.
29
31 Most of the methods are the same as those in DateTime::Format::Epoch.
32 The only difference is the constructor.
33
34 • new()
35
36 Constructor of the formatter/parser object. It has no parameters.
37
39 Support for this module is provided via the datetime@perl.org email
40 list. See http://lists.perl.org/ for more details.
41
43 Eugene van der Pijll <pijll@gmx.net>
44
46 Copyright (c) 2004 Eugene van der Pijll. All rights reserved. This
47 program is free software; you can redistribute it and/or modify it
48 under the same terms as Perl itself.
49
51 DateTime
52
53 datetime@perl.org mailing list
54
55
56
57perl v5.34.0 2022-01-21 DateTime::Format::Epoch::RJD(3)