Date::Parse - Parse date strings into time values
use Date::Parse; $time = str2time($date); ($ss,$mm,$hh,$day,$month,$year,$zone) = strptime($date);
Date::Parse provides two routines for parsing date strings into time values.
Date::Parse
str2time parses DATE and returns a unix time value, or undef upon failure. ZONE, if given, specifies the timezone to assume when parsing if the date string does not specify a timezome.
str2time
DATE
ZONE
strptime takes the same arguments as str2time but returns an array of values ($ss,$mm,$hh,$day,$month,$year,$zone). Elements are only defined if they could be extracted from the date string. The $zone element is the timezone offset in seconds from GMT. An empty array is returned upon failure.
strptime
($ss,$mm,$hh,$day,$month,$year,$zone)
$zone
Graham Barr <Graham.Barr@tiuk.ti.com>
$Revision: 2.3 $
Copyright (c) 1995 Graham Barr. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install Time::Zone, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Time::Zone
CPAN shell
perl -MCPAN -e shell install Time::Zone
For more information on module installation, please visit the detailed CPAN module installation guide.