{
    "mode": "perldoc",
    "parameter": "DateTime::Infinite",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/DateTime%3A%3AInfinite/json",
    "generated": "2026-06-12T13:44:28Z",
    "synopsis": "my $future = DateTime::Infinite::Future->new;\nmy $past   = DateTime::Infinite::Past->new;",
    "sections": {
        "NAME": {
            "content": "DateTime::Infinite - Infinite past and future DateTime objects\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 1.55\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "my $future = DateTime::Infinite::Future->new;\nmy $past   = DateTime::Infinite::Past->new;\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module provides two DateTime subclasses, \"DateTime::Infinite::Future\" and\n\"DateTime::Infinite::Past\".\n\nThe objects are always in the \"floating\" timezone, and this cannot be changed.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "The only constructor for these two classes is the \"new\" method, as shown in the \"SYNOPSIS\". This\nmethod takes no parameters.\n\nAll \"get\" methods in this module simply return infinity, positive or negative. If the method is\nexpected to return a string, it returns the string representation of positive or negative\ninfinity used by your system. For example, on my system calling \"$dt->year\"> returns a number\nwhich when printed appears either \"Inf\" or \"-Inf\".\n\nThis also applies to methods that are compound stringifications, which return the same strings\neven for things like \"$dt->ymd\" or \"$dt->iso8601\"\n\nThe object is not mutable, so the \"$dt->set\", \"$dt->settimezone\", and \"$dt->truncate\" methods\nare all do-nothing methods that simply return the object they are called with.\n\nObviously, the \"$dt->isfinite\" method returns false and the \"$dt->isinfinite\" method returns\ntrue.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "datetime@perl.org mailing list\n",
            "subsections": []
        },
        "BUGS": {
            "content": "There seem to be lots of problems when dealing with infinite numbers on Win32. This may be a\nproblem with this code, Perl, or Win32's IEEE math implementation. Either way, the module may\nnot be well-behaved on Win32 operating systems.\n\nBugs 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::Infinite - Infinite past and future DateTime objects",
    "flags": [],
    "examples": [],
    "see_also": []
}