I have tried to find out via the documentation but was not able to answer this question: What time_zone literals does DateTime
in perl accept?
CEST
is not valid. For CET
, output is the current time but we currently have CEST
timezone active.
What I am at: I would like to get the current time and find out what time it would be in CET
.
If the server is running at CEST
it should give as result the current time -1h. If the server is running at CET
, it should give the current time.
My approach is:
$av_loc_TESTHOUR = DateTime->now(time_zone=>'CET')->strftime('%H');
which gives the current time of the server as result, but should give the current time -1h.