There seems to be some inconsistency in the treatment of days in spans. In particular, TryFrom<Span> for Duration assumes that days are 24 hours, whereas Timestamp::saturating_add rejects days as units that can't be resolved without a specific timezone.
Personaly I think the assumption that days are 24 hours is dangerous and shouldn't be made (because it is readily violated by DST), but more than that I think all functions should at least agree on whether days are assumed to always be 24 hours or not.
There seems to be some inconsistency in the treatment of days in spans. In particular,
TryFrom<Span> for Durationassumes that days are 24 hours, whereasTimestamp::saturating_addrejects days as units that can't be resolved without a specific timezone.Personaly I think the assumption that days are 24 hours is dangerous and shouldn't be made (because it is readily violated by DST), but more than that I think all functions should at least agree on whether days are assumed to always be 24 hours or not.