elm-community / elm-time

A pure Elm date and time library.

Home Page:http://package.elm-lang.org/packages/elm-community/elm-time/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

offset value

idoo opened this issue · comments

I read the API documentation an as result I have a question:
is there any reason to use offset from midnight. instead the offset of time zones? and why we should use this offset in dateTime in case we have ZonedDateTime.elm

offset from midnight refers to the DateTime type's internal representation of the current hour/minute/second/millisecond. We use the offset so we don't have to store 4 separate values for those things and to make things easier to compute. As a user of this library, you won't generally have to care about that since it's just an implementation detail.