utc
ErrorsCollection

utc

Synthesised documentation from type/DateTime

From type/DateTime

See Original text in context

method utc(DateTime:D: --> DateTime:D)

Returns a DateTime object for the same time, but in time zone UTC.

say DateTime.new('2015-12-24T12:23:00+0200').utc;
# OUTPUT: «2015-12-24T10:23:00Z␤»