For your solution it would probably be better to work in 'epoch minutes' (i.e., minutes some some epoch...i.e., reference...date) rather than 'daily minutes' (i.e., minutes since midnight).
There are time-handling modules in CPAN that can handle it and there are plenty of formulas out on the internet that are pretty simple to compute Julian Dates (i.e., time since some 'standard' epoch, where Julian Date is usually expressed in elapsed decimal days since a 'standard' date...e.g., days since noon on 1 Jan 2000). This avoids the ...crossing of midnight... issue that you noted can be tricky.
In reply to Re^2: computation difficulty
by ack
in thread computation difficulty
by steph_bow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |