[Linux-disciples] Dates backwards
Chung-chieh Shan
ccshan at post.harvard.edu
Thu Feb 9 00:01:54 EST 2006
On 2006-02-08T19:15:53-0500, Stephen R Laniel wrote:
> My boss reminds me that we could do something sucky with the
> non-featureful date(1): have it spit out the number of
> seconds since the beginning of the epoch, subtract
> (7 days)*(24 hr/day)*(3600 sec/hr), and then feed that back
> into another instance of date(1) and have it print the date
> with the appropriate strftime(3) formatting.
Note that that may fail when you cross a daylight savings time boundary.
--
Edit this signature at http://www.digitas.harvard.edu/cgi-bin/ken/sig
http://bash.org/?454203
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20060209/f6fb51d2/attachment.pgp
More information about the Linux-disciples
mailing list