Time::Local::Extended

Extends 2038 barrier to 2098
Download

Time::Local::Extended Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Bob O'Neill
  • Publisher web site:
  • https://addons.mozilla.org/en-US/thunderbird/addon/2291

Time::Local::Extended Tags


Time::Local::Extended Description

Extends 2038 barrier to 2098 Time::Local::Extended is a Perl module that extends the 2038 date boundary to 2098. In conventional date manipulation using CORE::localtime and Time::Local::timelocal, you cannot use dates later than 2038. This module allows you to use dates as far out as 2098, giving you sixty more years to postpone the problem.SYNOPSIS use Time::Local::Extended qw(:ALL); my @localtime = localtime(2**31); my $seconds = timelocal(0,0,0,1,10,170); my $gmt_seconds = timegm(0,0,0,1,10,170); my $gmt_time = gmtime(2**31); my $ux_time = UNIX_TIMESTAMP('2097-07-04 12:34:56'); my $date = FROM_UNIXTIME(2**31); my $sql = qq( SELECT start_time FROM projects WHERE project_id = '1' ); my $date_time = $dbh->selectrow_array($sql); # '2097-07-04 12:34:56' my $ux_time = UNIX_TIMESTAMP($date_time); # 4023794096 my $date_time = FROM_UNIXTIME(2**31); my $sql = qq( UPDATE projects SET start_time = '$date_time' WHERE project_id = '1' ); Requirements: · Perl


Time::Local::Extended Related Software