Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Sep 2003 06:07:50 +0100
From:      Jez Hancock <jez.hancock@munk.nu>
To:        FreeBSD Questions List <freebsd-questions@freebsd.org>
Subject:   Unix timestamp
Message-ID:  <20030923050750.GA38213@users.munk.nu>

next in thread | raw e-mail | index | archive | help
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@users /home/munk# date -r "1064293551"
Tue Sep 23 06:05:51 BST 2003

Just curious - I ended up making a simple C app that does the job.

-- 
Jez

http://www.munk.nu/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030923050750.GA38213>