0.0.3 • Published 4 years ago

indonesia-utcoffset v0.0.3

Weekly downloads
33
License
MIT
Repository
-
Last release
4 years ago

indonesia UTC Offsets JS

npm Build Status Coverage Status

forSelectOptions

IndoUtcOffset.forSelectOptions =>
[
  { value: '+07:00', label: '+07:00 / WIB' },
  { value: '+08:00', label: '+08:00 / WIT' },
  { value: '+09:00', label: '+09:00 / WITA' }
]

offset2label

✓ offset2label(+07:00) => +07:00 / WIB
✓ offset2label(+08:00) => +08:00 / WIT
✓ offset2label(+09:00) => +09:00 / WITA

offset2shortLabel

✓ offset2shortLabel(+07:00) => +07:00 / WIB
✓ offset2shortLabel(+08:00) => +08:00 / WIT
✓ offset2shortLabel(+09:00) => +09:00 / WITA

Installation

To install just use yarn or npm. Example: yarn add indonesia-utcoffset

LICENSE

MIT