more useful options | |
PerlMonks |
Re: How to convert time from one time zone to anotherby Anonymous Monk |
on Apr 02, 2012 at 13:14 UTC ( [id://963004]=note: print w/replies, xml ) | Need Help?? |
use Date::Manip
or use unix command
$ TZ=required_timezone date -d "21:45:56 current_timezone"
e.g.
$TZ=IST date -d "12:45:46 GMT"
$TZ=GMT date -d "12:45:46 +0800 or HKT"
In Section
Seekers of Perl Wisdom
|
|