DateTime::Format::Flexible::lang::en.3pm

Langue: en

Autres versions - même langue

Version: 2010-03-10 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

DateTime::Format::Flexible::lang::en - the english language plugin

DESCRIPTION

You should not need to use this module directly.

If you only want to use one language, specify the lang property when parsing a date.

example:

  my $dt = DateTime::Format::Flexible->parse_datetime(
      'Wed, Jun 10, 2009' ,
      lang => ['en']
  );
  # $dt is now 2009-06-10T00:00:00
 
 

Note that this is not required, by default ALL languages are scanned when trying to parse a date.

new

Instantiate a new instance of this module.

months

month name regular expressions along with the month numbers (Jan(?:uary)? => 1)

days

day name regular expressions along the the day numbers (Mon(?:day)? => 1)

day_numbers

maps day of month names to the corresponding numbers (first => 01)

hours

maps hour names to numbers (noon => 12:00:00)

remove_strings

strings to remove from the date (rd as in 3rd)

parse_time

searches for the string 'at' to help determine a time substring (sunday at 3:00)

string_dates

maps string names to real dates (now => DateTime->now)

math_strings

useful strings when doing datetime math

timezone_map

maps unofficial timezones to official timezones for this language (CST => America/Chicago)

AUTHOR

     Tom Heady
     CPAN ID: thinc
     Punch, Inc.
     cpan@punch.net
     http://www.punch.net/
 
 
     Copyright 2010 Tom Heady.
 
     This program is free software; you can redistribute it and/or
     modify it under the terms of either:
 
 
*
the GNU General Public License as published by the Free
    Software Foundation; either version 1, or (at your option) any
    later version, or
*
the Artistic License version 2.0.

SEE ALSO

DateTime::Format::Flexible