in reply to Ignoring timezones when comparing dates with Time::Piece
The Time::Piece::Plus docs mention timezones all over the place, and if you look at the source you can see
my $self = $args->{as_localtime} ? $class->localtime() : $class->g +mtime(); my $parsed = $self->strptime($args->{str}, '%Y-%m-%d');
So there you go gmtime()->strptime(...)
Now the question is, does this work or do something real?
I don't know because I DateTime
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Ignoring timezones when comparing dates with Time::Piece::Plus
by Anonymous Monk on Apr 21, 2015 at 01:47 UTC |