{
    "mode": "perldoc",
    "parameter": "DateTime::LeapSecond",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/DateTime%3A%3ALeapSecond/json",
    "generated": "2026-06-10T23:35:56Z",
    "synopsis": "use DateTime;\nuse DateTime::LeapSecond;\nprint \"Leap seconds between years 1990 and 2000 are \";\nprint DateTime::Leapsecond::leapseconds($utcrd2000)\n- DateTime::Leapsecond::leapseconds($utcrd1990);",
    "sections": {
        "NAME": {
            "content": "DateTime::LeapSecond - leap seconds table and utilities\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 1.55\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use DateTime;\nuse DateTime::LeapSecond;\n\nprint \"Leap seconds between years 1990 and 2000 are \";\nprint DateTime::Leapsecond::leapseconds($utcrd2000)\n- DateTime::Leapsecond::leapseconds($utcrd1990);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module is used to calculate leap seconds for a given Rata Die day. It is used when DateTime\ncannot compile the XS version of this code.\n\nThis library is known to be accurate for dates until Jun 2020.\n\nThere are no leap seconds before 1972, because that's the year this system was implemented.\n\n*   leapseconds($rd)\n\nReturns the number of accumulated leap seconds for a given day.\n\n*   extraseconds($rd)\n\nReturns the number of leap seconds for a given day, in the range -2 .. 2.\n\n*   daylength($rd)\n\nReturns the number of seconds for a given day, in the range 86398 .. 86402.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "<http://hpiers.obspm.fr/eop-pc/earthor/utc/leapsecond.html>\n",
            "subsections": []
        },
        "SUPPORT": {
            "content": "Bugs may be submitted at <https://github.com/houseabsolute/DateTime.pm/issues>.\n\nThere is a mailing list available for users of this distribution, <mailto:datetime@perl.org>.\n",
            "subsections": []
        },
        "SOURCE": {
            "content": "The source code repository for DateTime can be found at\n<https://github.com/houseabsolute/DateTime.pm>.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Dave Rolsky <autarch@urth.org>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This software is Copyright (c) 2003 - 2021 by Dave Rolsky.\n\nThis is free software, licensed under:\n\nThe Artistic License 2.0 (GPL Compatible)\n\nThe full text of the license can be found in the LICENSE file included with this distribution.\n",
            "subsections": []
        }
    },
    "summary": "DateTime::LeapSecond - leap seconds table and utilities",
    "flags": [],
    "examples": [],
    "see_also": []
}