1DateTime::LeapSecond(3)User Contributed Perl DocumentatioDnateTime::LeapSecond(3)
2
3
4
6 DateTime::LeapSecond - leap seconds table and utilities
7
9 version 1.52
10
12 use DateTime;
13 use DateTime::LeapSecond;
14
15 print "Leap seconds between years 1990 and 2000 are ";
16 print DateTime::Leapsecond::leap_seconds( $utc_rd_2000 ) -
17 DateTime::Leapsecond::leap_seconds( $utc_rd_1990 );
18
20 This module is used to calculate leap seconds for a given Rata Die day.
21 It is used when DateTime.pm cannot compile the XS version of this code.
22
23 This library is known to be accurate for dates until Jun 2017.
24
25 There are no leap seconds before 1972, because that's the year this
26 system was implemented.
27
28 · leap_seconds( $rd )
29
30 Returns the number of accumulated leap seconds for a given day.
31
32 · extra_seconds( $rd )
33
34 Returns the number of leap seconds for a given day, in the range -2
35 .. 2.
36
37 · day_length( $rd )
38
39 Returns the number of seconds for a given day, in the range 86398
40 .. 86402.
41
43 <http://hpiers.obspm.fr/eop-pc/earthor/utc/leapsecond.html>
44
45 http://datetime.perl.org
46
48 Bugs may be submitted at
49 <https://github.com/houseabsolute/DateTime.pm/issues>.
50
51 There is a mailing list available for users of this distribution,
52 <mailto:datetime@perl.org>.
53
54 I am also usually active on IRC as 'autarch' on "irc://irc.perl.org".
55
57 The source code repository for DateTime can be found at
58 <https://github.com/houseabsolute/DateTime.pm>.
59
61 Dave Rolsky <autarch@urth.org>
62
64 This software is Copyright (c) 2003 - 2020 by Dave Rolsky.
65
66 This is free software, licensed under:
67
68 The Artistic License 2.0 (GPL Compatible)
69
70 The full text of the license can be found in the LICENSE file included
71 with this distribution.
72
73
74
75perl v5.32.0 2020-07-28 DateTime::LeapSecond(3)