-
-
Notifications
You must be signed in to change notification settings - Fork 87
Closed
Labels
breaking changeIssues that require a breaking change for resolution.Issues that require a breaking change for resolution.questionFurther information is requestedFurther information is requested
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
breaking changeIssues that require a breaking change for resolution.Issues that require a breaking change for resolution.questionFurther information is requestedFurther information is requested