Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: How to format dates prior to 1970?

by Corion (Patriarch)
on Jul 10, 2017 at 13:33 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1194697]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-04-25 15:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found