1DateTime::LeapSecond(3)User Contributed Perl DocumentatioDnateTime::LeapSecond(3)
2
3
4
6 DateTime::LeapSecond - leap seconds table and utilities
7
9 use DateTime;
10 use DateTime::LeapSecond;
11
12 print "Leap seconds between years 1990 and 2000 are ";
13 print Date::Leapsecond::leap_seconds( $utc_rd_2000 ) -
14 Date::Leapsecond::leap_seconds( $utc_rd_1990 );
15
17 This module is used to calculate leap seconds for a given Rata Die day.
18 It is used when DateTime.pm cannot compile the XS version of this code.
19
20 This library is known to be accurate for dates until december 2005.
21
22 There are no leap seconds before 1972, because that's the year this
23 system was implemented.
24
25 * leap_seconds( $rd )
26 Returns the number of accumulated leap seconds for a given day, in
27 the range 0 .. 22.
28
29 * extra_seconds( $rd )
30 Returns the number of leap seconds for a given day, in the range -2
31 .. 2.
32
33 * day_length( $rd )
34 Returns the number of seconds for a given day, in the range 86398
35 .. 86402.
36
38 Flávio Soibelmann Glock, <fglock@pucrs.br>
39
41 Copyright (c) 2003 Flávio Soibelmann Glock. Copyright (c) 2004-2006
42 David Rolsky. All rights reserved. This program is free software; you
43 can redistribute it and/or modify it under the same terms as Perl
44 itself.
45
46 The full text of the license can be found in the LICENSE file included
47 with this module.
48
50 <http://hpiers.obspm.fr/eop-pc/earthor/utc/leapsecond.html>
51
52 http://datetime.perl.org
53
54
55
56perl v5.8.8 2007-03-30 DateTime::LeapSecond(3)