{
    "mode": "perldoc",
    "parameter": "DateTime::Locale::Base",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/DateTime%3A%3ALocale%3A%3ABase/json",
    "generated": "2026-06-10T16:29:03Z",
    "synopsis": "use base 'DateTime::Locale::Base';",
    "sections": {
        "NAME": {
            "content": "DateTime::Locale::Base - Base class for individual locale objects (deprecated)\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 1.33\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use base 'DateTime::Locale::Base';\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module is no longer used by the code in the distribution. It is still included for the sake\nof any code out in the wild that may subclass this class. This class will be removed in a future\nrelease.\n",
            "subsections": []
        },
        "DEFAULT FORMATS": {
            "content": "Each locale has a set of four default date and time formats. They are distinguished by length,\nand are called \"full\", \"long\", \"medium\", and \"short\". Each locale may have a different default\nlength which it uses when its \"$locale->dateformatdefault()\",\n\"$locale->timeformatdefault()\", or \"$locale->datetimeformatdefault()\" methods are called.\n\nThis can be changed by calling the \"$locale->setdefaultdateformat()\" or\n\"$locale->setdefaulttimeformat()\" methods. These methods accept a string which must be one of\n\"full\", \"long\", \"medium\", or \"short\".\n",
            "subsections": []
        },
        "NAME FORMS": {
            "content": "Most names come in a number of variations. First, they may vary based on length, with wide,\nabbreviated, and narrow forms. The wide form is typically the full name, while the narrow form\nis often a single character. The narrow forms may not be unique. For example, \"T\" may be used\nfor Tuesday and Thursday in the English narrow forms.\n\nMany names also distinguish between \"format\" and \"stand-alone\" forms of a pattern. The format\npattern is used when the thing in question is being placed into a larger string. The stand-alone\nform is used when displaying that item by itself, for example in a calendar.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "All locales provide the following methods:\n\n*   $locale->id()\n\nThe locale's id.\n\n*   $locale->languageid()\n\nThe language portion of the id.\n\n*   $locale->scriptid()\n\nThe script portion of the id, if any.\n\n*   $locale->territoryid()\n\nThe territory portion of the id, if any.\n\n*   $locale->variantid()\n\nThe variant portion of the id, if any.\n\n*   $locale->name()\n\nThe full name for the locale in English.\n\n*   $locale->language()\n\nThe language name for the locale in English.\n\n*   $locale->script()\n\nThe script name for the locale in English, if any.\n\n*   $locale->territory()\n\nThe territory name for the locale in English, if any.\n\n*   $locale->variant()\n\nThe variant name for the locale in English, if any.\n\n*   $locale->nativename()\n\nThe full name for the locale in its native language, if any.\n\n*   $locale->nativelanguage()\n\nThe language name for the locale in its native language, if any.\n\n*   $locale->nativescript()\n\nThe script name for the locale in its native language, if any.\n\n*   $locale->nativeterritory()\n\nThe territory name for the locale in its native language, if any.\n\n*   $locale->nativevariant()\n\nThe variant name for the locale in its native language, if any.\n\n*   $locale->monthformatwide()\n\nReturns an array reference containing the wide format names of the months, with January as\nthe first month.\n\n*   $locale->monthformatabbreviated()\n\nReturns an array reference containing the abbreviated format names of the months, with\nJanuary as the first month.\n\n*   $locale->monthformatnarrow()\n\nReturns an array reference containing the narrow format names of the months, with January as\nthe first month.\n\n*   $locale->monthstandalonewide()\n\nReturns an array reference containing the wide stand-alone names of the months, with January\nas the first month.\n\n*   $locale->monthstandaloneabbreviated()\n\nReturns an array reference containing the abbreviated stand-alone names of the months, with\nJanuary as the first month.\n\n*   $locale->monthstandalonenarrow()\n\nReturns an array reference containing the narrow stand-alone names of the months, with\nJanuary as the first month.\n\n*   $locale->dayformatwide()\n\nReturns an array reference containing the wide format names of the days, with Monday as the\nfirst day.\n\n*   $locale->dayformatabbreviated()\n\nReturns an array reference containing the abbreviated format names of the days, with Monday\nas the first day.\n\n*   $locale->dayformatnarrow()\n\nReturns an array reference containing the narrow format names of the days, with Monday as\nthe first day.\n\n*   $locale->daystandalonewide()\n\nReturns an array reference containing the wide stand-alone names of the days, with Monday as\nthe first day.\n\n*   $locale->daystandaloneabbreviated()\n\nReturns an array reference containing the abbreviated stand-alone names of the days, with\nMonday as the first day.\n\n*   $locale->daystandalonenarrow()\n\nReturns an array reference containing the narrow stand-alone names of the days, with Monday\nas the first day.\n\n*   $locale->quarterformatwide()\n\nReturns an array reference containing the wide format names of the quarters.\n\n*   $locale->quarterformatabbreviated()\n\nReturns an array reference containing the abbreviated format names of the quarters.\n\n*   $locale->quarterformatnarrow()\n\nReturns an array reference containing the narrow format names of the quarters.\n\n*   $locale->quarterstandalonewide()\n\nReturns an array reference containing the wide stand-alone names of the quarters.\n\n*   $locale->quarterstandaloneabbreviated()\n\nReturns an array reference containing the abbreviated stand-alone names of the quarters.\n\n*   $locale->quarterstandalonenarrow()\n\nReturns an array reference containing the narrow stand-alone names of the quarters.\n\n*   $locale->erawide()\n\nReturns an array reference containing the wide names of the eras, with \"BCE\" first.\n\n*   $locale->eraabbreviated()\n\nReturns an array reference containing the abbreviated names of the eras, with \"BCE\" first.\n\n*   $locale->eranarrow()\n\nReturns an array reference containing the abbreviated names of the eras, with \"BCE\" first.\nHowever, most locales do not differ between the narrow and abbreviated length of the era.\n\n*   $locale->ampmabbreviated()\n\nReturns an array reference containing the abbreviated names of \"AM\" and \"PM\".\n\n*   $locale->dateformatlong()\n\n*   $locale->dateformatfull()\n\n*   $locale->dateformatmedium()\n\n*   $locale->dateformatshort()\n\nReturns the CLDR date pattern of the appropriate length.\n\n*   $locale->dateformats()\n\nReturns a hash reference of CLDR date patterns for the date formats, where the keys are\n\"full\", \"long\", \"medium\", and \"short\".\n\n*   $locale->timeformatlong()\n\n*   $locale->timeformatfull()\n\n*   $locale->timeformatmedium()\n\n*   $locale->timeformatshort()\n\nReturns the CLDR date pattern of the appropriate length.\n\n*   $locale->timeformats()\n\nReturns a hash reference of CLDR date patterns for the time formats, where the keys are\n\"full\", \"long\", \"medium\", and \"short\".\n\n*   $locale->datetimeformatlong()\n\n*   $locale->datetimeformatfull()\n\n*   $locale->datetimeformatmedium()\n\n*   $locale->datetimeformatshort()\n\nReturns the CLDR date pattern of the appropriate length.\n\n*   $locale->datetimeformats()\n\nReturns a hash reference of CLDR date patterns for the datetime formats, where the keys are\n\"full\", \"long\", \"medium\", and \"short\".\n\n*   $locale->dateformatdefault()\n\n*   $locale->timeformatdefault()\n\n*   $locale->datetimeformatdefault()\n\nReturns the default CLDR date pattern. The length of this format is based on the value of\n\"$locale->defaultdateformatlength()\" and/or \"$locale->defaulttimeformatlength()\".\n\n*   $locale->defaultdateformatlength()\n\n*   $locale->defaulttimeformatlength()\n\nReturns the default length for the format, one of \"full\", \"long\", \"medium\", or \"short\".\n\n*   $locale->setdefaultdateformatlength()\n\n*   $locale->setdefaulttimeformatlength()\n\nSets the default length for the format. This must be one of \"full\", \"long\", \"medium\", or\n\"short\".\n\n*   $locale->prefers24hourtime()\n\nReturns a boolean indicating the preferred hour format for this locale.\n\n*   $locale->firstdayofweek()\n\nReturns a number from 1 to 7 indicating the *local* first day of the week, with Monday being\n1 and Sunday being 7. For example, for a US locale this returns 7.\n\n*   $locale->availableformats()\n\nA list of format names, like \"MMdd\" or \"yyyyMM\". This should be the list directly supported\nby the subclass, not its parents.\n\n*   $locale->formatfor($key)\n\nGiven a valid name, returns the CLDR date pattern for that thing, if one exists.\n",
            "subsections": []
        },
        "SUPPORT": {
            "content": "See DateTime::Locale.\n\nBugs may be submitted at <https://github.com/houseabsolute/DateTime-Locale/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-Locale can be found at\n<https://github.com/houseabsolute/DateTime-Locale>.\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; you can redistribute it and/or modify it under the same terms as the Perl\n5 programming language system itself.\n\nThe full text of the license can be found in the LICENSE file included with this distribution.\n",
            "subsections": []
        }
    },
    "summary": "DateTime::Locale::Base - Base class for individual locale objects (deprecated)",
    "flags": [],
    "examples": [],
    "see_also": []
}