[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can GNU date do this?
From: |
Bob Proulx |
Subject: |
Re: Can GNU date do this? |
Date: |
Thu, 2 Jan 2003 20:13:19 -0700 |
User-agent: |
Mutt/1.4i |
Kenneth Stailey <address@hidden> [2003-01-02 11:10:11 -0800]:
> FreeBSD's date can turn seconds since the epoch back into a human-readable
> format:
>
> $ date -j -f "%s" 1041286200
> Mon Dec 30 17:10:00 EST 2002
Try this with GNU date. I will set the TZ to match yours.
export TZ=EST
date -d '1970-01-01 UTC 1041286200 sec'
Mon Dec 30 17:10:00 EST 2002
> Does GNU have strptime(3)?
The GNU libc does have strptime, yes.
Bob