now_seconds


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.

Examples:


let tm = now()
now_seconds()
// 1496675523.234862
now_seconds(tm)
// 1494575520
      

Also see:

now
time


Core Module Index | Contents