Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
span: deprecate silent "days are 24 hours" in some cases
This does make _some_ use cases a bit more annoying, but I think it overall makes the API more consistent. Essentially, unless `SpanRelativeTo::days_are_24_hours` are provided, then Jiff will always consider days to be a variable unit like weeks, months and years. Previously, this would only happen _some_ of the time. For now, when that assumption is silently made, Jiff will emit a deprecation warning. This will turn into a hard error in `jiff 0.2`. Ref #48
- Loading branch information