Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

DateTime::Locale::Base

Name DateTime::Locale::Base
Version 1.17
Located at /usr/share/perl5/vendor_perl
File /usr/share/perl5/vendor_perl/DateTime/Locale/Base.pm
Is Core No
Search CPAN for this module DateTime::Locale::Base
Documentation DateTime::Locale::Base
Module Details DateTime::Locale::Base


NAME

DateTime::Locale::Base - Base class for individual locale objects


VERSION

version 1.17


SYNOPSIS

  use base 'DateTime::Locale::Base';


DESCRIPTION

This module is no longer used by the code in the distribution. It is still included for the sake of any code out in the wild that may subclass this class. This class will be removed in a future release.


DEFAULT FORMATS

Each locale has a set of four default date and time formats. They are distinguished by length, and are called ``full'', ``long'', ``medium'', and ``short''. Each locale may have a different default length which it uses when its $locale->date_format_default(), < $locale-time_format_default() >>, or < $locale-datetime_format_default() >> methods are called.

This can be changed by calling the < $locale-set_default_date_format() >> or < $locale-set_default_time_format() >> methods. These methods accept a string which must be one of ``full'', ``long'', ``medium'', or ``short''.


NAME FORMS

Most names come in a number of variations. First, they may vary based on length, with wide, abbreviated, and narrow forms. The wide form is typically the full name, while the narrow form is often a single character. The narrow forms may not be unique. For example, ``T'' may be used for Tuesday and Thursday in the English narrow forms.

Many names also distinguish between ``format'' and ``stand-alone'' forms of a pattern. The format pattern is used when the thing in question is being placed into a larger string. The stand-alone form is used when displaying that item by itself, for example in a calendar.


METHODS

All locales provide the following methods:


SUPPORT

See the DateTime::Locale manpage.

Bugs 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.

I am also usually active on IRC as 'autarch' on irc://irc.perl.org.


SOURCE

The source code repository for DateTime-Locale can be found at https://github.com/houseabsolute/DateTime-Locale.


AUTHOR

Dave Rolsky <autarch@urth.org>


COPYRIGHT AND LICENSE

This software is copyright (c) 2003 - 2017 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.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024