Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Sep 2003 00:27:10 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        FreeBSD Questions List <freebsd-questions@freebsd.org>
Subject:   Re: Unix timestamp
Message-ID:  <20030923052709.GC93568@dan.emsphone.com>
In-Reply-To: <20030923050750.GA38213@users.munk.nu>
References:  <20030923050750.GA38213@users.munk.nu>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@allantgroup.com



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