method posix

Documentation for method posix, assembled from the following types:

class DateTime

From DateTime

(DateTime) method posix

Defined as:

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

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

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