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

NAME

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

VERSION

9       version 1.57
10

SYNOPSIS

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

DESCRIPTION

20       This module is used to calculate leap seconds for a given Rata Die day.
21       It is used when DateTime cannot compile the XS version of this code.
22
23       This library is known to be accurate for dates until Jun 2020.
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

SEE ALSO

43       <http://hpiers.obspm.fr/eop-pc/earthor/utc/leapsecond.html>
44

SUPPORT

46       Bugs may be submitted at
47       <https://github.com/houseabsolute/DateTime.pm/issues>.
48
49       There is a mailing list available for users of this distribution,
50       <mailto:datetime@perl.org>.
51

SOURCE

53       The source code repository for DateTime can be found at
54       <https://github.com/houseabsolute/DateTime.pm>.
55

AUTHOR

57       Dave Rolsky <autarch@urth.org>
58
60       This software is Copyright (c) 2003 - 2022 by Dave Rolsky.
61
62       This is free software, licensed under:
63
64         The Artistic License 2.0 (GPL Compatible)
65
66       The full text of the license can be found in the LICENSE file included
67       with this distribution.
68
69
70
71perl v5.34.0                      2022-03-03           DateTime::LeapSecond(3)
Impressum