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