method posix

Documentation for method posix assembled from the following types:

class DateTime

From DateTime

(DateTime) method posix

Defined as:

method posix(Bool:D: $ignore-timezone = False --> Int:D)

Returns the date and time as a POSIX/UNIX timestamp (seconds since the Epoch, 1st January 1970 UTC).

If $ignore-timezone is True, the DateTime object will be treated as if the time zone offset is zero.

say DateTime.new('2015-12-24T12:23:00Z').posix;       # OUTPUT: «1450959780␤»