On Wed Nov 24, 2004 at 17:32:51 +1100, [EMAIL PROTECTED] wrote:
>On Wed, Nov 24, 2004 at 01:41:17PM +1100, Benno wrote:
>> 
>> TZ=US/Pacific python -c "import time; print time.ctime(1081207440)" 
>> ^^^^^^^^^^^^^
>
>You can also use the GNU date command:
>
>       date --date '1081207440 seconds'

Cool, I didn't know data could do that..

>Prepend with a TZ setting if you so desire.

So yeah, the TZ thing should work with any app. (I often
do 'TZ=something date' to work out the time elsewhere in 
the world.)

For those that don't know and are interested it is libc that will
do any printing of the time, usually through ctime(), and these 
functions will take into account the TZ environment variable.

Benno
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to