in reply to DateTime->now problem
#!/usr/bin/perl use strict; use warnings; use DateTime; my $dt = DateTime->now( 'time_zone' => 'local' ) ->set_time_zone( 'floating' ); print $dt, "\n"; $dt = DateTime->from_epoch( 'epoch' => 1301690690 ); print $dt, "\n";
|
|---|