1DateTime::LeapSecond(3)User Contributed Perl DocumentatioDnateTime::LeapSecond(3)
2
3
4

NAME

6       DateTime::LeapSecond - leap seconds table and utilities
7

SYNOPSIS

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

DESCRIPTION

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 2009.
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
27           Returns the number of accumulated leap seconds for a given day, in
28           the range 0 .. 22.
29
30       ·   extra_seconds( $rd )
31
32           Returns the number of leap seconds for a given day, in the range -2
33           .. 2.
34
35       ·   day_length( $rd )
36
37           Returns the number of seconds for a given day, in the range 86398
38           .. 86402.
39

AUTHOR

41       FlA~Xvio Soibelmann Glock, <fglock@pucrs.br>
42
44       Copyright (c) 2003 FlA~Xvio Soibelmann Glock.  Copyright (c) 2004-2009
45       David Rolsky.  All rights reserved.  This program is free software; you
46       can redistribute it and/or modify it under the same terms as Perl
47       itself.
48
49       The full text of the license can be found in the LICENSE file included
50       with this module.
51

SEE ALSO

53       <http://hpiers.obspm.fr/eop-pc/earthor/utc/leapsecond.html>
54
55       http://datetime.perl.org
56
57
58
59perl v5.10.1                      2017-03-21           DateTime::LeapSecond(3)
Impressum