method timezone
1 | class DateTime |
1.1 | (DateTime) method timezone |
Documentation for method timezone
assembled from the following types:
class DateTime
From DateTime
(DateTime) method timezone
Defined as:
method timezone(DateTime: --> Int)
Returns the time zone in seconds as an offset from UTC.
say DateTime.new('2015-12-24T12:23:00+0200').timezone; # OUTPUT: «7200»