3 ms·
We have mostly the same principles but have come to different conclusions. The semantics of midnight are indeed what is important here, but midnight does not qu
by nbouscal 13y ago
We have mostly the same principles but have come to different conclusions. The semantics of midnight are indeed what is important here, but midnight does not qualify as a zero. Zero implies identity for some addition, and there is no addition for which midnight is the identity. This is because midnight does not even support addition: you have to use timedeltas if you want to add times. Timedelta 0, then, is the proper zero, and should semantically be falsy in languages where zeros are falsy. Midnight, on the other hand, should not be. (The entire notion of falsiness is terrible and should crawl off somewhere and die, but that's beside the point.)
- amirouche 13y agoAgreed, midnight is not False.