Matthew Rosewarne on 15 Jul 2007 17:53:18 -0000 |
Some UNIX programs store time in what are called "epoch seconds", meaning the number of seconds since 00:00:00 (12 midnight) on January 1, 1970. While I'm sure some of you can tell time this way, I personally cannot, so I needed to find a way to covert this big number into an actual date. After wading through a number of online converters and perl scripts, I found a good way to do it with plan old /bin/date: date -d "1970-01-01 $TIMESTAMP sec" So for example, if you entered: date -d "1970-01-01 1184521826 sec" you would get: Sun Jul 15 18:50:26 EDT 2007 Hopefully someone else will find this useful. Attachment:
signature.asc ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|