method local
1 | class DateTime |
1.1 | (DateTime) method local |
Documentation for method local
assembled from the following types:
class DateTime
From DateTime
(DateTime) method local
Defined as:
method local(DateTime: --> DateTime)
Returns a DateTime object for the same time, but in the local time zone ($*TZ
).
my = -3600;say DateTime.new('2015-12-24T12:23:00+0200').local; # OUTPUT: «2015-12-24T09:23:00-0100»