Re: Can GNU date do this?
[email protected] (Bob Proulx) Thu, 2 Jan 2003 20:13:19 -0700
| Newsgroups | gmane.comp.gnu.sh-utils.bugs |
|---|---|
| Message-ID | <[email protected]> |
Kenneth Stailey <[email protected]> [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