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 (Chancellor) 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.