On 8/23/20 8:16 AM, Stephen J. Turnbull wrote: > Richard Damon writes: > > > As for holidays, why do holidays matter for time. > > They don't. They matter for durations, because humans regularly do > things like schedule a meeting for "one week from today" and then have > to it because it will fall on a holiday observed by their employer. > Why use units like months and cubits? Because "Man is the measure of > all things." People think in terms of such units, and then are > surprised when computers do "stupid" things with them, like convert > them to intervals measured in seconds that are applied to TAI dates, > and so schedule meetings on a holiday. > > Now, if you aren't thinking like a human, all you need are seconds. > Why mess with such a complicated representation combining weeks and > minutes and microseconds? So the OP is evidently thinking in service > of humans. This protocol *will* be used by humans, and I'll guarantee > you those users will occasionally be surprised and annoyed by the > results. > > Steve But a week from Dec 18th IS Dec 25th, just ask any kid. The business logic of special cases like a regularly scheduled event happening on an inappropriate day falls to a higher level of logic. The definition of what is an appropriate day is well beyond the scope of this sort of class, as it is very domain specific, and even event specific.
-- Richard Damon _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/NCQB4NG7DQTM5LCWQLXNFAACNEVBEN5S/ Code of Conduct: http://python.org/psf/codeofconduct/