Lisp HUG Maillist Archive

seconds since epoch

How do I get the number of seconds since EPOCH with LW?

	Thanks, Joel

--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------


Re: seconds since epoch


On Sep 26, 2011, at 02:33 , Joel Reymont wrote:

> 
> How do I get the number of seconds since EPOCH with LW?

That depends on what you mean by EPOCH, but two possibilities are

(get-universal-time)

and

(- (get-universal-time) (encode-universal-time 0 0 0 1 1 1970))


Updated at: 2020-12-10 08:37 UTC