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
America
Antarctica
Arctic
Asia
Atlantic
Australia
Brazil
Canada
Chile
Etc
Europe
Indian
Mexico
Pacific
US
CET.js
CHANGELOG
CST6CDT.js
EET.js
EST.js
EST5EDT.js
HST.js
MET.js
MST.js
MST7MDT.js
PST8PDT.js
README.md
WET.js
af_ZA.js
am_ET.js
ast_ES.js
bg_BG.js
bn_BD.js
bn_IN.js
ca_ES.js
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
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
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.