unit-format.md
November 21, 2014 · View on GitHub
Unit Format
{ amount: 100, unit: "meter-per-second", form: "short" } ⟹ "100 m/s"
{ amount: 59, unit: "second", form: "long" } ⟹ "59 seconds"
| iLib | |
|---|---|
| Regular Formatting | :heavy_check_mark: |
| Localized Unit Names | :heavy_check_mark: |
| Long and Short Formats | :heavy_check_mark: |
| Auto Conversion to Locale's Measurement System | :heavy_check_mark: |
| Auto-scaling to Largest Appropriate Units | :heavy_check_mark: |
| Max and Min Fraction Digits | :heavy_check_mark: |
| Numeric numbering systems latin (0123...), arabic (٠١٢٣...), thai (๐๑๒๓...) | :heavy_check_mark: |
| Algorithmic numbering systems / RBNF roman, gregorian | :heavy_check_mark: |
Regular Formatting
TBD
Localized Unit Names
TBD
Long and Short Formats
TBD
Auto Conversion to Locale's Measurement System
TBD
Auto-scaling to Largest Appropriate Units
TBD
Max and Min Fraction Digits
TBD
Numeric numbering systems
TBD
Algorithmic numbering systems / RBNF
TBD
Duration Format
Unit format for time specifics.
{ hours: 42, minutes: 23, seconds: 23 } ⟹ 42:23:23
{ hours: 98, minutes: 11 } in it ⟹ 98.11
| iLib | |
|---|---|
| Clock format | :heavy_check_mark: |
| Written-out format | :heavy_check_mark: |
| Localized units | :heavy_check_mark: |
| Locale-sensitive plurals | :heavy_check_mark: |
Clock format
TBD
Written-out format
TBD
Localized units
TBD
Locale-sensitive plurals
TBD