Heavily inspired by matthewmueller/date.
const humanInterval = ;;
More sophisticated examples
Human Interval understands all of the following examples:
The full list
Human Interval supports the following units
months-- assumes 30 days
years-- assumes 365 days
Human Interval supports numbers up to ten being written out in English. If you want to extend it, you can do so by adding more keys to the language map. Alternatively you could add support for alternative languages.
const humanInterval = ;humanIntervallanguageMap'one-hundred' = 100// Adds support for the following:// returns 150000