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

Re^3: Date::Parse - how to correctly parse dates between 1901 and 1969

by soonix (Canon)
on Feb 19, 2018 at 21:32 UTC ( [id://1209510]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Date::Parse - how to correctly parse dates between 1901 and 1969
in thread Date::Parse - how to correctly parse dates between 1901 and 1969

With a %d format, as per sprintf. BTW your data indicates another wraparound between 1900-12-31 and 1901-01-01.

Therefore, I wouldn't use epoch seconds here, anyway. Perhaps one of the DateTime::Format modules can become your friend?

  • Comment on Re^3: Date::Parse - how to correctly parse dates between 1901 and 1969

Replies are listed 'Best First'.
Re^4: Date::Parse - how to correctly parse dates between 1901 and 1969
by eniad (Acolyte) on Feb 19, 2018 at 21:47 UTC
    Ah, I see. I should have paid more attention to my output. I just just trying to make it look nice! I'll look more closely at the DateTime::Format modules. Thanks.

Log In?
Username:
Password:

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

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

    No recent polls found