now_seconds(@optional tm)
Return seconds elapsed since the epoch. The epoch is 00:00:00 Coordinated Universal Time 01-01-1970.
If tm
is the result of calling now()
, the milliseconds representing that
time is returned. Otherwise, the current system time as seconds (with nanosecond precision) is returned.
let tm = now()
now_seconds()
// 1496675523.234862
now_seconds(tm)
// 1494575520