![]() |
![]()
| ![]() |
![]()
NAMEDateTime::Format::Flexible::lang::en - the english language plugin DESCRIPTIONYou 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. newInstantiate a new instance of this module. monthsmonth name regular expressions along with the month numbers (Jan(?:uary)? => 1) daysday name regular expressions along the the day numbers (Mon(?:day)? => 1) day_numbersmaps day of month names to the corresponding numbers (first => 01) hoursmaps hour names to numbers (noon => 12:00:00) remove_stringsstrings to remove from the date (rd as in 3rd) parse_timesearches for the string 'at' to help determine a time substring (sunday at 3:00) string_datesmaps string names to real dates (now => DateTime->now) relativeparse relative dates (ago => ago, from => from now, next => next, last => last) math_stringsuseful strings when doing datetime math timezone_mapmaps unofficial timezones to official timezones for this language (CST => America/Chicago) AUTHORTom Heady CPAN ID: thinc Punch, Inc. cpan@punch.net http://www.punch.net/ COPYRIGHT & LICENSECopyright 2011 Tom Heady. This program is free software; you can redistribute it and/or modify it under the terms of either:
SEE ALSODateTime::Format::Flexible
|