Open ariebovenberg opened 1 month ago
Strong precedent here would be that Temporal doesn't support adding days (or higher) to an Instant
.
As someone who just had to deal with people circumventing NodaTime
's intentionally missing Instant.PlusDays
via Instant.Plus(Duration.FromDays(...))
, I second Temporal
's decision. Adding days to an Instant
is one of those things that work well for almost all times and looks reasonable enough that it only really blows up on DST change days.
Instant
currently doesn't support addingdays
because they're treated as "calendar days" in the rest of the library (which aren't always 24 hours due to DST). However, forInstant
days can be assumed to always be 24 hours.Implementing this needs to be weighed with the downside of muddying the water between "standard" days and "calendar" days