sub time { # ** conflicts with builtin 'time'! Yow! my $thistime = shift; $thistime -= 3 * 3600; # - three hours, since GMT+3 is that much ear +lier. my @a = gmtime($thistime); ... }
You should probably look at the strftime function offered by the POSIX module, it may make stringifing the date and changing it's format in the future simplier.
In reply to Re: time zones
by wog
in thread time zones
by Yossi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |