ultranerds@east ~ $ date
Fri Nov 14 05:33:17 PST 2008
How would I go about increasing (and decreasing, depending on the timezone I wish to show the date stamp in), the output from PST, to say GMT , or another timezone.
I guess its something like:
hours difference from GMT * 60 * 60 +(or -) the timestamp
Presuming your libc plays along, in theory you can diddle $ENV{TZ} and get the right representation from the same time_t value. Otherwise you're going to want to look into DateTime and let it and DateTime::TimeZone convert things around for you.
The cake is a lie.
The cake is a lie.
The cake is a lie.