Skip to content
This repository was archived by the owner on Mar 2, 2025. It is now read-only.

Commit

Permalink
Add month and year
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp committed Mar 24, 2017
1 parent 57d294c commit 78561d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Features
40kg * 9.8m/s² * 150cm
sin(30°)
```
Supported units: `A`, `ampere`, `B`, `becquerel`, `bit`, `bits`, `bps`, `Bq`, `byte`, `Byte`, `bytes`, `Bytes`, `C`, `candela`, `cd`, `coulomb`, `d`, `day`, `days`, `deg`, `degree`, `degrees`, `electronvolt`, `eV`, `F`, `farad`, `feet`, `foot`, `ft`, `g`, `gram`, `grams`, `gray`, `Gy`, `H`, `h`, `ha`, `hectare`, `henry`, `hertz`, `hour`, `hours`, `Hz`, `in`, `inch`, `inches`, `J`, `joule`, `joules`, `K`, `kat`, `katal`, `kelvin`, `L`, `lb`, `liter`, `liters`, `lm`, `lumen`, `lux`, `lx`, `m`, `meter`, `meters`, `mile`, `miles`, `min`, `minute`, `minutes`, `mol`, `mole`, `mph`, `N`, `newton`, `ohm`, `ounce`, `ounces`, `oz`, `Pa`, `pascal`, `pound`, `pounds`, `rad`, `radian`, `radians`, `S`, `s`, `sec`, `second`, `seconds`, `siemens`, `sievert`, `Sv`, `T`, `t`, `tesla`, `ton`, `tonne`, `tonnes`, `tons`, `V`, `volt`, `W`, `w`, `watt`, `watts`, `Wb`, `weber`, `week`, `weeks`, `yard`, `yards`, `yd`, `°`, `Ω`.
Supported units: `A`, `ampere`, `B`, `becquerel`, `bit`, `bits`, `bps`, `Bq`, `byte`, `Byte`, `bytes`, `Bytes`, `C`, `candela`, `cd`, `coulomb`, `d`, `day`, `days`, `deg`, `degree`, `degrees`, `electronvolt`, `eV`, `F`, `farad`, `feet`, `foot`, `ft`, `g`, `gram`, `grams`, `gray`, `Gy`, `H`, `h`, `ha`, `hectare`, `henry`, `hertz`, `hour`, `hours`, `Hz`, `in`, `inch`, `inches`, `J`, `joule`, `joules`, `K`, `kat`, `katal`, `kelvin`, `L`, `lb`, `liter`, `liters`, `lm`, `lumen`, `lux`, `lx`, `m`, `meter`, `meters`, `mile`, `miles`, `min`, `minute`, `minutes`, `mol`, `mole`, `month`, `months`, `mph`, `N`, `newton`, `ohm`, `ounce`, `ounces`, `oz`, `Pa`, `pascal`, `pound`, `pounds`, `rad`, `radian`, `radians`, `S`, `s`, `sec`, `second`, `seconds`, `siemens`, `sievert`, `Sv`, `T`, `t`, `tesla`, `ton`, `tonne`, `tonnes`, `tons`, `V`, `volt`, `W`, `w`, `watt`, `watts`, `Wb`, `weber`, `week`, `weeks`, `yard`, `yards`, `yd`, `year`, `years`, `°`, `Ω`.

- Explicit unit conversions with `->`:
```
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
],
"dependencies": {
"purescript-prelude": "^2.4.0",
"purescript-quantities": "^3.5.0",
"purescript-quantities": "^3.5.1",
"purescript-parsing": "^3.2.1",
"purescript-globals": "^2.0.0",
"purescript-maps": "^2.1.2",
Expand Down
4 changes: 3 additions & 1 deletion src/Insect/Parser.purs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import Quantities (DerivedUnit, atto, bit, byte, centi, day, deci, degree, exa,
watt, week, yard, (./), pascal, coulomb, volt, farad, ohm,
siemens, weber, tesla, henry, lumen, lux, becquerel, gray,
sievert, katal, hectare, liter, tonne, electronvolt, ampere,
mole, kelvin, candela)
mole, kelvin, candela, month, year)

import Data.Array (some, fromFoldable)
import Data.Either (Either(..))
Expand Down Expand Up @@ -209,6 +209,8 @@ normalUnitDict = Dictionary
, hour ==> ["hours", "hour", "h"]
, day ==> ["days", "day"]
, week ==> ["weeks", "week", "w"]
, month ==> ["months", "month"]
, year ==> ["years", "year"]
, gram ==> ["grams", "gram", "g"]
, meter ==> ["meters", "meter", "m"]
]
Expand Down

0 comments on commit 78561d8

Please sign in to comment.