chineseperlmonks has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; my @now =localtime(); my $timeStamp = sprintf("%04d%02d%02d%02d%02d%02d",$now[5]+1900,$now[4 +]+1,$now[3],$now[2],$now[1],$now[0]); my $systime = timelocal($now[0],$now[1],$now[2],$now[3],$now[4]+1,$now +[5]+1900);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: I have seen a bug of Time::Local module
by wind (Priest) on Mar 31, 2011 at 07:18 UTC | |
by chineseperlmonks (Initiate) on Apr 02, 2011 at 08:01 UTC | |
|
Re: I have seen a bug of Time::Local module
by Corion (Patriarch) on Mar 31, 2011 at 07:07 UTC | |
by ikegami (Patriarch) on Mar 31, 2011 at 07:27 UTC |