local
ErrorsCollection

local

Synthesised documentation from type/DateTime

From type/DateTime

See Original text in context

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

Returns a DateTime object for the same time, but in the local time zone ($*TZ variable).

my $*TZ = -3600;
say DateTime.new('2015-12-24T12:23:00+0200').local# OUTPUT: «2015-12-24T09:23:00-0100␤»