Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by eniad (Acolyte)
on Feb 19, 2018 at 20:49 UTC ( [id://1209509]=note: print w/replies, xml ) Need Help??


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

How should I correctly interpret the value as signed?
  • Comment on Re^2: Date::Parse - how to correctly parse dates between 1901 and 1969

Replies are listed 'Best First'.
Re^3: Date::Parse - how to correctly parse dates between 1901 and 1969
by soonix (Canon) on Feb 19, 2018 at 21:32 UTC
    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?

      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://1209509]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-19 21:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found