1
0
Fork 0
arangodb/js/node/node_modules/timezone
Alan Plum 40aff3fdcd Upgrade JS deps (#8773)
* Make jsunity hash function avoid recursion

This guards against traversals of recursive data structures causing a stack overflow. This is crucial when using assertEqual with unknown inputs.

* Update deps

accepts: 1.3.4 -> 1.3.5
ansi_up: 2.0.2 -> 4.0.3
content-disposition: 0.5.2 -> 0.5.3
dedent: 0.6.0 -> 0.7.0
error-stack-parser: 1.3.6 -> 2.0.2
eslint: 2.13.1 -> 5.16.0
eslint-config-semistandard: 6.0.2 -> removed
eslint-config-standard: 5.3.1 -> removed
eslint-plugin-promise: 1.3.2 -> removed
eslint-plugin-standard: 1.3.2 -> removed
highlight.js: 9.12.0 -> 9.15.6
http-errors: 1.6.2 -> 1.7.2
iconv-lite: 0.4.19 -> 0.4.24
joi: 9.2.0 -> 14.3.1
joi-to-json-schema: 2.3.0 -> 4.0.1
js-yaml: 3.10.0 -> 3.13.1
marked: 0.3.9 -> 0.6.2
mime-types: 2.1.12 -> 2.1.22
mocha: 2.5.3 -> 6.1.3
qs: 6.5.1 -> 6.7.0
semver: 5.4.1 -> 6.0.0
statuses: 1.4.0 -> 1.5.0
timezone: 1.0.13 -> 1.0.22
type-is: 1.6.15 -> 1.6.16
underscore: 1.8.3 -> 1.9.1

* Inline eslint semistandard config

The eslint standard config has become extremely opinionated and incompatible with the existing coding style. This subset matches the existing coding style most closely. In the future we should migrate to an autoformatter like prettier and avoid this problem altogether.

* Linting

* Fix mocha runner

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

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.