The following would be more appropriate.
my $now = DateTime->now( time_zone => 'local' );
Update: Fixed case.
In reply to Re^2: convert local time to unix epoch time
by ikegami
in thread convert local time to unix epoch time
by ganeshwari
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |