Name : perl-Time-y2038
| |
Version : 20100403
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.6.1
| Date : 2023-07-20 19:56:24
|
Group : Development/Libraries/Perl
| Source RPM : perl-Time-y2038-20100403-lp155.6.1.src.rpm
|
Size : 0.11 MB
| |
Packager : https://www_suse_com/
| |
Summary : Versions of Perl\'s time functions which work beyond 2038
|
Description :
On many computers, Perl\'s time functions will not work past the year 2038. This is a design fault in the underlying C libraries Perl uses. Time::y2038 provides replacements for those functions which will work accurately +/1 142 million years.
This only imports the functions into your namespace. To replace it everywhere, see the Time::y2038::Everywhere manpage.
Replaces the following functions:
gmtime() See the perlfunc/gmtime manpage for details.
localtime() See the perlfunc/localtime manpage for details.
timegm() my $time = timegm($sec, $min, $hour, $month_day, $month, $year);
The inverse of \'gmtime()\', takes a date and returns the coorsponding $time (number of seconds since Midnight, January 1st, 1970 GMT). All values are the same as \'gmtime()\' so $month is 0..11 (January is 0) and the $year is years since 1900 (2008 is 108).
my $time = timegm(1, 2, 3, 4, 5, 6);
timegm() can take two additional arguments which are always ignored. This lets you feed the results from gmtime() back into timegm() without having to strip the arguments off.
The following is always true:
timegm(gmtime($time)) == $time;
timelocal() my $time = timelocal($sec, $min, $hour, $mday, $month, $year); my $time = timelocal($sec, $min, $hour, $mday, $month, $year, $wday, $yday, $isdst);
Like \'timegm()\', but interprets the date in the current time zone.
\'timelocal()\' will normally figure out if daylight savings time is in effect, but if $isdst is given this will override that check. This is mostly useful to resolve ambiguous times around \"fall back\" when the hour between 1am and 2am occurs twice.
print timelocal(59, 59, 0, 4, 10, 107); # 1194163199
print timelocal(0, 0, 1, 4, 10, 107, undef, undef, 1); # 1194163200
print timelocal(0, 0, 1, 4, 10, 107, undef, undef, 0); # 1194166800
$wday and $yday are ignored. They are only there for compatibility with the return value of \'localtime()\'.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.5/x86_64 |