rluiten / elm-date-extra

Elm Date Extra library add/subtract/diff/format etc dates
http://package.elm-lang.org/packages/rluiten/elm-date-extra/latest
BSD 3-Clause "New" or "Revised" License
75 stars 36 forks source link

Add Year as possible value for the Period data type #57

Closed MikkelStorgaard closed 6 years ago

rluiten commented 6 years ago

Sorry for the delay responding to you.

Period is a fixed length of time. It is an elapsed time concept, which does not include the concept of Years Months or Daylight saving variations because they do not represent a fixed length of time they are human abstractions.

If you want to do math with Years use Duration. http://package.elm-lang.org/packages/rluiten/elm-date-extra/latest/Date-Extra-Duration