in reply to I can't subtract one DateTime object from another to get a DateTime::Duration in days
My best guess is that you are requesting "days" from a duration which has "no fixed conversion rate" for days.
From the docs, just a paragraph after the code you posted ...
The only conversions possible are:
years <=> months
weeks <=> days
hours <=> minutes
seconds <=> nanoseconds
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: I can't subtract one DateTime objects from each other to get a DateTime::Duration in days
by Cody Fendant (Hermit) on May 10, 2021 at 23:36 UTC | |
by LanX (Saint) on May 11, 2021 at 06:58 UTC |