Rose::DateTime::Util

Rose::DateTime::Util Perl module contains some simple DateTime wrapper functions.
Download

Rose::DateTime::Util Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • John C. Siracusa
  • Publisher web site:
  • http://search.cpan.org/~jsiracusa/

Rose::DateTime::Util Tags


Rose::DateTime::Util Description

Rose::DateTime::Util Perl module contains some simple DateTime wrapper functions. Rose::DateTime::Util Perl module contains some simple DateTime wrapper functions.SYNOPSIS use Rose::DateTime::Util qw(:all); $now = parse_date('now'); $then = parse_date('12/25/2001 11pm'); print $now->day_of_week; # e.g., "Monday" # "December 25th 2001 at 11:00:00 PM" $date_text = format_date($then, "%B %E %Y at %t");EXPORTSRose::DateTime::Util does not export any function names by default.The 'all' tag: use Rose::DateTime::Util qw(:all);will cause the following function names to be imported: format_date() parse_date() parse_epoch() parse_european_date()CLASS METHODSerrorReturns a message describing the last error that occurred.european_dates Get or set a boolean flag that determines how "xx/xx/xxxx" dates are parsed by the parse_date function. If set to a false-but-defined value, then such dates are parsed as "mm/dd/yyyy". If set to true, then they're parsed as "dd/mm/yyyy". If set to undef, then the attribute resets to its initial value, which is determined as described below.The initial value of this attribute is chosen based on the current locale as stored in DateTime's DefaultLocale setting. This initial value is looked up only once. Any subsequent changes to DateTime's DefaultLocale setting will be ignored until/unless this attribute is reset to undef.time_zone Get or set the default time zone. This value is passed to DateTime->new(...) as the value of the time_zone parameter when parse_date() creates the DateTime object that it returns. The default value is "floating". Requirements: · Perl


Rose::DateTime::Util Related Software