1DateTime::LeapSecond(3)User Contributed Perl DocumentatioDnateTime::LeapSecond(3)
2
3
4
6 DateTime::LeapSecond - leap seconds table and utilities
7
9 version 0.70
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 December 2009.
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, in
31 the range 0 .. 22.
32
33 · extra_seconds( $rd )
34
35 Returns the number of leap seconds for a given day, in the range -2
36 .. 2.
37
38 · day_length( $rd )
39
40 Returns the number of seconds for a given day, in the range 86398
41 .. 86402.
42
44 <http://hpiers.obspm.fr/eop-pc/earthor/utc/leapsecond.html>
45
46 http://datetime.perl.org
47
49 Dave Rolsky <autarch@urth.org>
50
52 This software is Copyright (c) 2011 by Dave Rolsky.
53
54 This is free software, licensed under:
55
56 The Artistic License 2.0 (GPL Compatible)
57
58
59
60perl v5.12.3 2011-08-30 DateTime::LeapSecond(3)