in reply to Re: Arithmetic bug within Time:Piece?
in thread Arithmetic bug within Time:Piece?
The only example given of adding a Time-Seconds' constant is ONE_DAY, which is mostly safe.
And the POD of Time::Seconds says that those constants are not objects but only seconds. ¹
The documentation is indeed misleading ... and unfortunately again a case were "core module" means "old module".
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
¹) Since perl does not (yet?) support constant objects, these constants are in seconds only, so you cannot, for example, do this: print ONE_WEEK->minutes;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Arithmetic bug within Time:Piece?
by LanX (Saint) on Oct 02, 2015 at 23:52 UTC | |
by Anonymous Monk on Oct 03, 2015 at 00:17 UTC | |
by LanX (Saint) on Oct 03, 2015 at 01:55 UTC | |
|
Re^3: Arithmetic bug within Time:Piece?
by stevieb (Canon) on Oct 03, 2015 at 03:12 UTC | |
by LanX (Saint) on Oct 03, 2015 at 09:25 UTC |