Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: How to format dates prior to 1970?

by Corion (Pope)
on Jul 10, 2017 at 13:33 UTC ( #1194697=note: print w/replies, xml ) Need Help??


in reply to How to format dates prior to 1970?

Works for me:

> perl -MTime::Piece -wE "say $Time::Piece::VERSION; my $t=Time::Piece +->strptime('05/10/1969','%m/%d/%Y'); say $t->ymd; say $t->strftime('% +Y-%m-%d')" 1.20_01 1969-05-10 1969-05-10
> perl -v This is perl 5, version 14, subversion 2 (v5.14.2) built for MSWin32-x +86-multi-thread

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1194697]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2020-11-30 11:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?