DateTime::Locale::FromData - Online Linux Manual PageSection : 3
Updated : 2022-01-21
Source : perl v5.34.0
Note : User Contributed Perl Documentation

NAMEDateTime::Locale::FromData − Class for locale objects instantiated from pre−defined data

VERSIONversion 1.33

SYNOPSIS​ my $locale = DateTime::Locale::FromData−>new(%lots_of_data)

DESCRIPTIONThis class is used to represent locales instantiated from the data in the DateTime::Locale::Data module.

METHODSThis class provides the following methods:

$locale>codeThe complete locale id, something like en-US.

$locale>language_codeThe language portion of the code, like en.

$locale>script_codeThe script portion of the code, like Hant.

$locale>territory_codeThe territory portion of the code, like US.

$locale>variant_codeThe variant portion of the code, like POSIX.

$locale>nameThe locale's complete name, which always includes at least a language component, plus optional territory and variant components. Something like ​English United States. The value returned will always be in English.

$locale>language

$locale>script

$locale>territory

$locale>variantThe relevant component from the locale's complete name, like English or ​United States.

$locale>native_nameThe locale's complete name in localized form as a UTF−8 string.

$locale>native_language

$locale>native_script

$locale>native_territory

$locale>native_variantThe relevant component from the locale's complete native name as a UTF−8 string.

$locale>month_format_wide

$locale>month_format_abbreviated

$locale>month_format_narrow

$locale>month_stand_alone_wide

$locale>month_stand_alone_abbreviated

$locale>month_stand_alone_narrow

$locale>day_format_wide

$locale>day_format_abbreviated

$locale>day_format_narrow

$locale>day_stand_alone_wide

$locale>day_stand_alone_abbreviated

$locale>day_stand_alone_narrow

$locale>quarter_format_wide

$locale>quarter_format_abbreviated

$locale>quarter_format_narrow

$locale>quarter_stand_alone_wide

$locale>quarter_stand_alone_abbreviated

$locale>quarter_stand_alone_narrow

$locale>am_pm_abbreviated

$locale>era_wide

$locale>era_abbreviated

$locale>era_narrowThese methods all return an array reference containing the specified data. The methods with format in the name should return strings that can be used a part of a string, like the month of July. The stand alone values are for use in things like calendars as opposed to a sentence. The narrow forms may not be unique (for example, in the day column heading for a calendar it's okay to have T for both Tuesday and Thursday). The wide name should always be the full name of thing in question. The narrow name should be just one or two characters. These methods return a reference to the data stored in the locale object. If you change this reference's contents, this will affect the data in the locale object! You should clone the data first if you want to modify it.

$locale>date_format_full

$locale>date_format_long

$locale>date_format_medium

$locale>date_format_short

$locale>time_format_full

$locale>time_format_long

$locale>time_format_medium

$locale>time_format_short

$locale>datetime_format_full

$locale>datetime_format_long

$locale>datetime_format_medium

$locale>datetime_format_shortThese methods return strings appropriate for the DateTime−>format_cldr method.

$locale>format_for($name)These are accessed by passing a name to $locale−>format_for(...), where the name is a CLDR-style format specifier. The return value is a string suitable for passing to $dt−>format_cldr, so you can do something like this: ​ print $dt−>format_cldr( $dt−>locale−>format_for('MMMdd') ) which for the en locale would print out something like 08 Jul. Note that the localization may also include additional text specific to the locale. For example, the MMMMd format for the zh locale includes the Chinese characters for day () and month (), so you get something like ​8月23日.

$locale>available_formatsThis should return a list of all the format names that could be passed to $locale−>format_for. See the documentation for individual locales for details and examples of these formats. The format names that are available vary by locale.

$locale>glibc_datetime_format

$locale>glibc_date_format

$locale>glibc_date_1_format

$locale>glibc_time_format

$locale>glibc_time_12_formatThese methods return strings appropriate for the DateTime−>strftime method. However, you are strongly encouraged to use the other format methods, which use the CLDR format data. They are primarily included for the benefit for DateTime::Format::Strptime.

$locale>versionThe CLDR version from which this locale was generated.

$locale>prefers_24_hour_timeReturns a boolean indicating whether or not the locale prefers 24−hour time.

$locale>first_day_of_weekReturns a number from 1 to 7 indicating the local first day of the week, with Monday being 1 and Sunday being 7.

$locale>locale_dataReturns a clone of the original data used to create this locale as a hash. This is here to facilitate creating custom locales via ​DateTime::Locale−register_data_locale>.

SUPPORTBugs may be submitted at <https://github.com/houseabsolute/DateTime−Locale/issues>. There is a mailing list available for users of this distribution, <mailto:datetime@perl.org>.

SOURCEThe source code repository for DateTime-Locale can be found at <https://github.com/houseabsolute/DateTime−Locale>.

AUTHORDave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSEThis software is copyright (c) 2003 − 2021 by Dave Rolsky. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. The full text of the license can be found in the ​LICENSE file included with this distribution.
0
Johanes Gumabo
Data Size   :   33,018 byte
man-DateTime::Locale::FromData.3pmBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   4 / 179,203
Visitor ID   :     :  
Visitor IP   :   3.145.73.167   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|DateTime::Locale::FromData.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|DateTime::Locale::FromData.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|DateTime::Locale::FromData.3pm|43|br══─}─══|'br══─}─══ )         (htmlprn|149|DateTime::Locale::FromData.3pm|43|'br══─}─══ |'br══─}─══ )