in reply to I can't subtract one DateTime object from another to get a DateTime::Duration in days

You almost always never need DateTime and can almost always use strftime from POSIX, in combination with the time functions perl already supports.
  • Comment on Re: I can't subtract one DateTime object from another to get a DateTime::Duration in days
  • Download Code

Replies are listed 'Best First'.
Re^2: I can't subtract one DateTime object from another to get a DateTime::Duration in days
by BillKSmith (Monsignor) on May 11, 2021 at 18:11 UTC
    True, you probably never 'need' the power of DateTime. However, it does offer the convenience of a 'swiss-army-knife'. It has always been able to solve my time related problems without the effort of searching for a better tool.
    Bill
      I don't hate DateTime or think less of anyone who does use it, I just use it when I have to. Usually that's never. YMMV
Re^2: I can't subtract one DateTime object from another to get a DateTime::Duration in days
by Anonymous Monk on May 11, 2021 at 19:45 UTC
    maybe show some code to back that up?