bjornbm / dimensional

Dimensional library variant built on Data Kinds, Closed Type Families, TypeNats (GHC 7.8+).
BSD 3-Clause "New" or "Revised" License
102 stars 16 forks source link

Add `decade` and `millennium` units? #219

Closed konsumlamm closed 2 years ago

konsumlamm commented 2 years ago

Numeric.Units.Dimensional.NonSI currently has a century unit, meaning 100 years. Decade and millennium are two other common units, meaning 10 and 1000 years, respectively.

bjornbm commented 2 years ago

This is an example of where the adding of units has been more need-driven than systematic. century is in there because many astronomical calculations I've used are based around (Julian) centuries. I have no objections in principle to adding decade and millennium.