<quote who="Michael Knight">
> [EMAIL PROTECTED] wrote:
>> You can also use the GNU date command:
>>
>>      date --date '1081207440 seconds'
>
> Does this work as expected? When I run it I get:

thanks, everyone, for the solutions, most worked, except the above one:

# TZ=AEST python -c "import time; print time.ctime(1081207440)"
Mon Apr  5 23:24:00 2004

# date --date '1081207440 seconds'
date: invalid date `1081207440 seconds'

# TZ=AEST perl -e 'print $t = localtime(1081207440),"\n"'
Mon Apr  5 23:24:00 2004

and, the end of the day, I had vague recollection that I struck this issue
once before, after a short search, I found a REXX script that someone gave
me few years ago, to deal with that 'problem', even apropriately called
'uts2date' (xcept I kept searching under date* and time*.....)

# uts2date 1081207440
1081207440 Unix seconds converts to:
23:24:00 on 05-4-2004 dd-mm-yyyy


-- 
Voytek
-- 
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