moment-timezone-parse

2.0.1 • Public • Published

Moment Timezone Parse

Parse the timezone component of a ISO8601 date string and return an approparite IANA timezone name.

Build Status

Installation

npm install moment-timezone-parse --save

Usage

const parse      = require('moment-timezone-parse');
console.log(parse('2017-11-08T23:16:00-0200').format());
// =>
// Etc/GMT+2

How it works

The timezone designator (i.e. -0200) is parsed from the string and a timezone name is derived from that string (i.e. Etc/GMT+2).

Readme

Keywords

none

Package Sidebar

Install

npm i moment-timezone-parse

Weekly Downloads

5

Version

2.0.1

License

ISC

Last publish

Collaborators

  • jevensen
  • daniel.gershin
  • celolb
  • rafael.uchoa
  • jarrodbmiller
  • terbepetra
  • matteo.pandolfi
  • ericyd_ap
  • ivisilva
  • henriquelaki
  • carlo.anselmi
  • stefano.santonocito
  • carlhannusch
  • robdll
  • jorgemarrufo
  • apshoebkhan
  • samullen-ap
  • dpjones09
  • josevsp
  • johnb2
  • rickymcmurtrey
  • jgrayson03
  • apadmin
  • alexkwolfe
  • kellym
  • cgrayson
  • steveodom
  • ap_luisferreira
  • alisimbanegavi
  • benjmartin
  • sammarten
  • gabriel.roldan.ap
  • stwf-ap