1
0
Fork 0
arangodb/js/node/node_modules/timezone
Alan Plum 869cca7993 Upgrade non-breaking node deps (#3883) 2018-07-13 14:08:02 +02:00
..
Africa
America
Antarctica
Arctic
Asia
Atlantic
Australia
Brazil
Canada
Chile
Etc
Europe
Indian
Mexico
Pacific
US
.npmignore
CET.js Add iconv-lite and timezone 2016-08-03 15:47:07 +02:00
CHANGELOG
CST6CDT.js
EET.js
EST.js
EST5EDT.js
HST.js
MET.js
MST.js
MST7MDT.js
PST8PDT.js
README.md
WET.js Add iconv-lite and timezone 2016-08-03 15:47:07 +02:00
af_ZA.js
am_ET.js
ast_ES.js
bg_BG.js
bn_BD.js
bn_IN.js
ca_ES.js Add iconv-lite and timezone 2016-08-03 15:47:07 +02:00
cs_CZ.js
de_AT.js
de_CH.js
de_DE.js
el_GR.js
en_AU.js
en_CA.js
en_GB.js
en_HK.js
en_NZ.js
en_US.js
es_AR.js
es_CL.js Add iconv-lite and timezone 2016-08-03 15:47:07 +02:00
es_CO.js
es_CR.js
es_DO.js
es_EC.js
es_ES.js
es_GT.js
es_HN.js
es_MX.js
es_NI.js
es_PA.js
es_PE.js
es_PR.js
es_SV.js
es_UY.js
es_VE.js
eu_ES.js
fi_FI.js
fr_BE.js
fr_CA.js
fr_CH.js
fr_FR.js
gl_ES.js
he_IL.js
hi_IN.js
hr_HR.js
hu_HU.js
id_ID.js
index.js
it_CH.js
it_IT.js
ja_JP.js
ko_KR.js
loaded.js
locales.js
lt_LT.js
lv_LV.js
ms_MY.js
nb_NO.js
nds_DE.js
nl_BE.js
nl_NL.js
package.json
pl_PL.js
pt_BR.js
pt_PT.js
rfc822.js Add iconv-lite and timezone 2016-08-03 15:47:07 +02:00
ru_RU.js
si_LK.js
sl_SI.js
sq_AL.js
sr_RS.js
sv_SE.js
synopsis.js
ta_IN.js
uk_UA.js
ur_PK.js
vi_VN.js
zh_CN.js
zh_HK.js
zh_TW.js
zones.js

README.md

Sundial

Timezone Build Status

Format time in JavaScript using the IANA time zone database. (Photo: Sundial by Wolfgang Staudt.)

var tz = require('timezone/loaded'),
    equal = require('assert').equal,
    utc;

// Get POSIX time in UTC.
utc = tz('2012-01-01');

// Convert UTC time to local time in a localize language.
equal(tz(utc, '%c', 'fr_FR', 'America/Montreal'),
      'sam. 31 déc. 2011 19:00:00 EST');

A full-featured time zone aware date formatter for JavaScript.

  • Timezone is a MicroJS library in pure JavaScript with no dependencies that provides timezone aware date math and date formatting.
  • Timezone uses the IANA Database to determine the correct wall clock time anywhere in the world for any time since the dawn of standardized time.
  • Timezone formats dates with a full implementation of strftime formats, including the GNU date extensions.
  • Timezone represents time in POSIX time and local time using RFC 3999 date strings.
  • Timezone is a full featured standards based time library in pure JavaScript for under 3K minified and gzipped.

Hacking

$ git clone --quiet https://github.com/bigeasy/timezone.git
$ cd timezone && make && npm install && npm test

License

The MIT License.