Contents

Roo

DateTime.unix_time

Returns the Unix time representation of this DateTime object as an integer Number. This is the number of seconds that have elapsed since 00:00:00 UTC on Thursday 1st Jan 1970.

var now = DateTime() # This moment in time.
print(now.unix_time) # e.g: 1.535869e+9