method utc
1 | class DateTime |
1.1 | (DateTime) method utc |
Documentation for method utc
assembled from the following types:
class DateTime
From DateTime
(DateTime) method utc
Defined as:
method utc(DateTime: --> DateTime)
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»