1DateTime::Format::DatePUasresre(C3o)ntributed Perl DocumDeantteaTtiimoen::Format::DateParse(3)
2
3
4

NAME

6       DateTime::Format::DateParse - Parses Date::Parse compatible formats
7

SYNOPSIS

9           use DateTime::Format::DateParse;
10
11           my $dt = DateTime::Format::DateParse->parse_datetime( $date );
12           my $dt = DateTime::Format::DateParse->parse_datetime( $date, $zone );
13

DESCRIPTION

15       This module is a compatibility wrapper around Date::Parse.
16

USAGE

18   Import Parameters
19       This module accepts no arguments to it's "import" method and exports no
20       symbols.
21
22   Methods
23       Class Methods
24
25       ·   parse_datetime($date [, $zone])
26
27           Accepts a Date::Parse compatible $date string and optionally a
28           Time::Zone compatible $zone string.
29
30           Returns a DateTime object.
31

GOTCHAS

33       ·   If parse_datetime is called on a $date that doesn't know specify a
34           timezone and $zone is not set, then the timezone of the returned
35           DateTime object will be set to the "local" timezone.  This is
36           consistent with the behavior of Date::Parse.
37
38       ·   If parse_datetime is called without a $zone but the $date string
39           does specify a timezone/offset or if parse_datetime is called with
40           a $zone that DateTime::TimeZone does not understand, the returned
41           DateTime object will have it's timezone set to a fixed offset from
42           UTC.  This means that "DST" information is not available and date
43           math will not reflect "DST" transitions.  This may be resolved for
44           true timezones by using the DateTime::TimeZone::Alias module to
45           "alias" the Time::Zone timezone to an Olson DB name.  This may be
46           done automatically in a future release.
47

CREDITS

49       Graham Barr (GBARR) <gbarr@pobox.com>, author of Date::Parse
50
51       Everyone at the DateTime "Asylum".
52

SUPPORT

54       Support for this module is provided via the <datetime@perl.org> email
55       list.  See <http://lists.perl.org/> for more details.
56

AUTHOR

58       Joshua Hoblitt (JHOBLITT) <jhoblitt@cpan.org>
59
61       Copyright (c) 2005-6  Joshua Hoblitt. All rights reserved. This program
62       is free software; you can redistribute it and/or modify it under the
63       same terms as Perl itself.
64
65       The full text of the licenses can be found in the LICENSE file included
66       with this module, or in perlartistic and perlgpl as supplied with Perl
67       5.8.1 and later.
68

SEE ALSO

70       Date::Parse, Time::Zone, DateTime, DateTime::TimeZone,
71       DateTime::TimeZone::Alias, <http://datetime.perl.org/>
72
73
74
75perl v5.12.0                      2010-05-07    DateTime::Format::DateParse(3)
Impressum