Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

datetime::format::dateparse(3pm) [debian man page]

DateTime::Format::DateParse(3pm)			User Contributed Perl Documentation			  DateTime::Format::DateParse(3pm)

NAME
DateTime::Format::DateParse - Parses Date::Parse compatible formats SYNOPSIS
use DateTime::Format::DateParse; my $dt = DateTime::Format::DateParse->parse_datetime( $date ); my $dt = DateTime::Format::DateParse->parse_datetime( $date, $zone ); DESCRIPTION
This module is a compatibility wrapper around Date::Parse. USAGE
Import Parameters This module accepts no arguments to it's "import" method and exports no symbols. Methods Class Methods o parse_datetime($date [, $zone]) Accepts a Date::Parse compatible $date string and optionally a Time::Zone compatible $zone string. Returns a DateTime object. GOTCHAS
o If parse_datetime is called on a $date that doesn't know specify a timezone and $zone is not set, then the timezone of the returned DateTime object will be set to the "local" timezone. This is consistent with the behavior of Date::Parse. o If parse_datetime is called without a $zone but the $date string does specify a timezone/offset or if parse_datetime is called with a $zone that DateTime::TimeZone does not understand, the returned DateTime object will have it's timezone set to a fixed offset from UTC. This means that "DST" information is not available and date math will not reflect "DST" transitions. This may be resolved for true timezones by using the DateTime::TimeZone::Alias module to "alias" the Time::Zone timezone to an Olson DB name. This may be done automatically in a future release. CREDITS
Graham Barr (GBARR) <gbarr@pobox.com>, author of Date::Parse Everyone at the DateTime "Asylum". SUPPORT
Support for this module is provided via the <datetime@perl.org> email list. See <http://lists.perl.org/> for more details. AUTHOR
Joshua Hoblitt (JHOBLITT) <jhoblitt@cpan.org> COPYRIGHT
Copyright (c) 2005-6 Joshua Hoblitt. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the licenses can be found in the LICENSE file included with this module, or in perlartistic and perlgpl as supplied with Perl 5.8.1 and later. SEE ALSO
Date::Parse, Time::Zone, DateTime, DateTime::TimeZone, DateTime::TimeZone::Alias, <http://datetime.perl.org/> perl v5.10.1 2010-04-16 DateTime::Format::DateParse(3pm)

Check Out this Related Man Page

DateTime::Format::Builder::Parser::Quick(3pm)		User Contributed Perl Documentation	     DateTime::Format::Builder::Parser::Quick(3pm)

NAME
DateTime::Format::Builder::Parser::Quick - Use another formatter, simply SYNOPSIS
use DateTime::Format::Builder ( parsers => { parse_datetime => [ { Quick => 'DateTime::Format::HTTP' }, { Quick => 'DateTime::Format::Mail' }, { Quick => 'DateTime::Format::IBeat' }, ]}); is the same as: use DateTime::Format::HTTP; use DateTime::Format::Mail; use DateTime::Format::IBeat; use DateTime::Format::Builder ( parsers => { parse_datetime => [ sub { eval { DateTime::Format::HTTP->parse_datetime( $_[1] ) } }, sub { eval { DateTime::Format::Mail->parse_datetime( $_[1] ) } }, sub { eval { DateTime::Format::IBeat->parse_datetime( $_[1] ) } }, ]}); (These two pieces of code can both be found in the test suite; one as quick.t, the other as fall.t.) DESCRIPTION
"Quick" adds a parser that allows some shortcuts when writing fairly standard and mundane calls to other formatting modules. SPECIFICATION
"Quick" has two keys, one optional. The "Quick" keyword should have an argument of either an object or a class name. If it's a class name then the class is "use"d. The "method" keyword is optional with a default of "parse_datetime". It's either name of the method to invoke on the object, or a reference to a piece of code. In any case, the resultant code ends up looking like: my $rv = $Quick->$method( $date ); THANKS
See the main module's section. SUPPORT
Support for this module is provided via the datetime@perl.org email list. See http://lists.perl.org/ for more details. Alternatively, log them via the CPAN RT system via the web or email: http://perl.dellah.org/rt/dtbuilder bug-datetime-format-builder@rt.cpan.org This makes it much easier for me to track things and thus means your problem is less likely to be neglected. LICENCE AND COPYRIGHT
Copyright X Iain Truskett, 2003. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.000 or, at your option, any later version of Perl 5 you may have available. The full text of the licences can be found in the Artistic and COPYING files included with this module, or in perlartistic and perlgpl as supplied with Perl 5.8.1 and later. AUTHOR
Iain Truskett <spoon@cpan.org> SEE ALSO
"datetime@perl.org" mailing list. http://datetime.perl.org/ perl, DateTime, DateTime::Format::Builder perl v5.10.1 2010-03-14 DateTime::Format::Builder::Parser::Quick(3pm)
Man Page