Unix timestamp

Bill Campbell freebsd at celestial.com
Mon Sep 22 22:27:09 PDT 2003


On Tue, Sep 23, 2003, Jez Hancock wrote:
>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:

	perl -e 'print time . "\n"'

Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

The is no worse tyranny than to force a man to pay for what he does not
want merely because you think it would be good for him.  -- Robert Heinlein


More information about the freebsd-questions mailing list