mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-23 16:43:15 +01:00
12 lines
261 B
Plaintext
12 lines
261 B
Plaintext
use DateTime;
|
|
use DateTime::TimeZone;
|
|
|
|
#my $timezone_name = 'America/New_York';
|
|
my $timezone_name = 'UTC';
|
|
|
|
my $dt = DateTime->now(time_zone => $timezone_name);
|
|
my $offset = $dt->offset();
|
|
|
|
print "Timezone: $timezone_name\n";
|
|
print "Offset: $offset seconds\n";
|