Comment on Fix date-handling bug when today’s date is later than the target monthparentComments−pasc18782yNo if you are manipulating dates do not use time.Use an integer type denoting days since the start date. See Modified Julian date.Thus tomorrow is always 1 more than today - if you have times you need leap seconds.−JR14272yThanks for the explanation! (edit - this was meant genuinely, not sarcastically)Slightly sad to have been downvoted, though, just for making a tentative suggestion (note use of question mark) :'(
Comments
No if you are manipulating dates do not use time.
Use an integer type denoting days since the start date. See Modified Julian date.
Thus tomorrow is always 1 more than today - if you have times you need leap seconds.
Thanks for the explanation! (edit - this was meant genuinely, not sarcastically)
Slightly sad to have been downvoted, though, just for making a tentative suggestion (note use of question mark) :'(