Is there a reason `UtcOffset` doesn't internally r...
# kotlinx-datetime
c
Is there a reason
UtcOffset
doesn't internally rely on
Duration
? Looking at the code, my guess is that it was to rely on Java's implementation?
I think it'd be worth it having a conversion function to/from
Duration
at least, I could create the PR if you want
d
If this is a useful thing to have, sure, but let's discuss your use case first to see if it can already be achieved in a more idiomatic manner.
c
I don't really have a use-case, I was just reviewing my knowledge of KotlinX.Datetime and got confused by why
TimeZone.offsetAt
doesn't return a
Duration