1 2 3
use DateTime; print `date`; print DateTime->now->format_cldr("dd.MM.yyyy HH:mm:ss") . "\n";
perldoc DateTimeDateTime->now( ... )
This class method is equivalent to calling from_epoch() with the value returned from Perl's time() function. Just as with the new() method, it accepts "time_zone" and "locale" parameters.
By default, the returned object will be in the UTC time zone.
2020-04-24T06:10:29 mikaWelche Zeitzone gibt man denn eigentlich in einer Webanwendung/Script an?
2020-04-24T06:31:16 bianca2020-04-24T06:10:29 mikaWelche Zeitzone gibt man denn eigentlich in einer Webanwendung/Script an?
Kommt drauf an wofür. Um was geht es denn dabei?
let userTZOffset = new Date().getTimezoneOffset();