Parse date strings into time values
Date::Parse provides two routines for parsing date strings into time values.
str2time(DATE [, ZONE])
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.
strptime(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.
- Links to openSUSE:Leap:15.1:Update / perl-TimeDate
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Maintenance:12986/perl-TimeDate.openSUSE_Leap_15.1_Update && cd $_
- Create Badge
Refresh
Source Files (show merged sources derived from linked package)
Filename | Size | Changed |
---|---|---|
TimeDate-2.30.tar.gz | 0000031109 30.4 KB | |
_link | 0000000215 215 Bytes | |
cpanspec.yml | 0000000709 709 Bytes | |
perl-TimeDate-getdate.patch | 0000001569 1.53 KB | |
perl-TimeDate-parse-out-century-if-specified.patch | 0000002979 2.91 KB | |
perl-TimeDate.changes | 0000005720 5.59 KB | |
perl-TimeDate.spec | 0000002478 2.42 KB |
Comments 0