[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
adding option to date to specify date in unix format (seconds since epoc
From: |
Matus UHLAR - fantomas |
Subject: |
adding option to date to specify date in unix format (seconds since epoch) |
Date: |
Mon, 25 Jul 2005 17:52:37 +0200 |
User-agent: |
Mutt/1.3.28i |
Hello,
I've seen this request ocasionally appear in archive of this list (and
sh-utils before). The FreeBSD's date has such option:
-r seconds
Print the date and time represented by seconds, where seconds is
the number of seconds since the Epoch (00:00:00 UTC, January 1,
1970; see time(3)), and can be specified in decimal, octal, or
hex.
Wouldn't you mind adding such option (although not -r, because it's already
used) to GNU date too? The usually mentioned way:
date -d '1970-1-1 UTC <number> seconds'
is an ugly workaround to get the requested result...
--
Matus UHLAR - fantomas, address@hidden ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Chernobyl was an Windows 95 beta test site.
- adding option to date to specify date in unix format (seconds since epoch),
Matus UHLAR - fantomas <=