in reply to Arithmetic bug within Time:Piece?
The same problem happens with ONE_YEAR which is 31_556_930 seconds or the number of seconds in 365.24225 days
The fact that your year calculation was off by about one quarter of a day was a dead give-away.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
My blog: Imperial Deltronics
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Arithmetic bug within Time:Piece?
by LanX (Saint) on Oct 02, 2015 at 21:12 UTC | |
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 | |
by stevieb (Canon) on Oct 03, 2015 at 03:12 UTC | |
by LanX (Saint) on Oct 03, 2015 at 09:25 UTC |