MCPcopy
hub / github.com/moment/moment-timezone

github.com/moment/moment-timezone @0.6.2 sqlite

repository ↗ · DeepWiki ↗ · release 0.6.2 ↗
378 symbols 917 edges 650 files 57 documented · 15%
README

Moment Timezone

NPM version NPM downloads MIT License Build Status FOSSA Status

IANA Time zone support for Moment.js

Project Status

Moment-Timezone is an add-on for Moment.js. Both are considered legacy projects, now in maintenance mode. In most cases, you should choose a different library.

For more details and recommendations, please see Project Status in the Moment docs.

Thank you.

Resources

Examples

var june = moment("2014-06-01T12:00:00Z");
june.tz('America/Los_Angeles').format('ha z'); // 5am PDT
june.tz('America/New_York').format('ha z');    // 8am EDT
june.tz('Asia/Tokyo').format('ha z');          // 9pm JST
june.tz('Australia/Sydney').format('ha z');    // 10pm EST

var dec = moment("2014-12-01T12:00:00Z");
dec.tz('America/Los_Angeles').format('ha z');  // 4am PST
dec.tz('America/New_York').format('ha z');     // 7am EST
dec.tz('Asia/Tokyo').format('ha z');           // 9pm JST
dec.tz('Australia/Sydney').format('ha z');     // 11pm EST

License

Moment-timezone is freely distributable under the terms of the MIT license.

FOSSA Status

Extension points exported contracts — how you extend this code

PackedZoneBundle (Interface)
Bundle of packed zone data and links for multiple timezones
moment-timezone-utils.d.ts
UnpackedZone (Interface)
Parsed / unpacked zone data.
index.d.ts
UnpackedZoneBundle (Interface)
Bundle of raw zone data and links for multiple timezones
moment-timezone-utils.d.ts
MomentZone (Interface)
(no doc)
index.d.ts
UnpackedCountryData (Interface)
Bundle of timezones for a single country
moment-timezone-utils.d.ts
MomentZoneOffset (Interface)
(no doc)
index.d.ts
MomentTimezone (Interface)
extends MomentTimezone declared in index
moment-timezone-utils.d.ts
MomentTimezone (Interface)
(no doc)
index.d.ts

Core symbols most depended-on inside this repo

zone
called by 685
index.d.ts
countries
called by 599
index.d.ts
zonesForCountry
called by 250
index.d.ts
tz
called by 125
index.d.ts
utcOffset
called by 47
index.d.ts
add
called by 44
index.d.ts
needsOffset
called by 33
moment-timezone.js
abbr
called by 22
index.d.ts

Shape

Function 343
Method 26
Interface 9

Languages

TypeScript100%

Modules by API surface

builds/moment-timezone-with-data-2012-2022.js36 symbols
moment-timezone.js35 symbols
builds/moment-timezone-with-data.js35 symbols
builds/moment-timezone-with-data-1970-2030.js35 symbols
builds/moment-timezone-with-data-10-year-range.js35 symbols
index.d.ts25 symbols
builds/moment-timezone-with-data.min.js23 symbols
builds/moment-timezone-with-data-2012-2022.min.js23 symbols
builds/moment-timezone-with-data-1970-2030.min.js23 symbols
builds/moment-timezone-with-data-10-year-range.min.js23 symbols
builds/moment-timezone.min.js22 symbols
moment-timezone-utils.js16 symbols

Dependencies from manifests, versioned

moment/moment>=2.9.0 · 1×
robloach/component-installer* · 1×
grunt1.5.3 · 1×
grunt-contrib-clean2.0.1 · 1×
grunt-contrib-jshint3.2.0 · 1×
grunt-contrib-nodeunit5.0.0 · 1×
grunt-contrib-uglify5.2.2 · 1×
grunt-exec3.0.0 · 1×
moment2.29.4 · 1×
typescript3.5.1 · 1×

For agents

$ claude mcp add moment-timezone \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact