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.
- Sources inherited from project openSUSE:Factory
-
4
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Leap:15.1:Staging:FactoryCandidates/perl-TimeDate && cd $_ - Create Badge
Refresh
Source Files
| Filename | Size | Changed |
|---|---|---|
| README.md | 0000000340 340 Bytes | |
| TimeDate-2.33.tar.gz | 0000029997 29.3 KB | |
| _scmsync.obsinfo | 0000000273 273 Bytes | |
| build.specials.obscpio | 0000000256 256 Bytes | |
| cpanspec.yml | 0000000664 664 Bytes | |
| perl-TimeDate.changes | 0000007253 7.08 KB | |
| perl-TimeDate.spec | 0000004508 4.4 KB |
Comments 0