Unix timestamp
Dan Nelson
dnelson at allantgroup.com
Mon Sep 22 22:27:16 PDT 2003
In the last episode (Sep 23), Jez Hancock said:
> Is there a native FreeBSD shell util for returning the time in seconds
> since the Unix epoch? date(1) doesn't seem to do this, only the
> converse with the -r switch:
>
> [6:05:51] munk at users /home/munk# date -r "1064293551"
> Tue Sep 23 06:05:51 BST 2003
$ date -r 1064293551 +%s
1064293551
$ date +%s
1064294819
--
Dan Nelson
dnelson at allantgroup.com
More information about the freebsd-questions
mailing list