Date in another timezone
Cool hack in Unix: if you know the zonefile abbreviation for a timezone, you can use it to get the date there:
$ TZ=PST8PDT date
Tue Aug 30 05:07:39 PDT 2005
This also works:
$ TZ=America/Los_Angeles date
Tue Aug 30 05:08:17 PDT 2005
Timezone files are in /usr/share/zoneinfo
on OpenBSD and Linux.
Posted at 14:09,
in the comp category. Comments [0]
Submit this story to: » del.icio.us
» digg
» reddit. Search for it on
technorati.
Submit a comment
Please enter comments as plain text only; HTML is not supported. Submitting an URL is optional.
Comments are moderated and may not appear immediately.
Comments are closed for this story.