npm.io
1.0.49 • Published 2 months ago

tzdata-factory

Licence
MIT
Version
1.0.49
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
53

Synopsis

This is (a portion of) the IANA TZ database, represented as JSON. Use this module in combination with timezonecomplete. It is part of a set of similar modules:

  • tzdata
  • tzdata-africa
  • tzdata-antarctica
  • tzdata-asia
  • tzdata-australasia
  • tzdata-backward
  • tzdata-etcetera
  • tzdata-europe
  • tzdata-factory
  • tzdata-northamerica
  • tzdata-southamerica
  • tzdata-backward-utc

This module contains all zones of IANA TZ database file 'factory'.

TZ Database Version

2026b

Use

In Node.JS, to get at the JSON data, simply do:

var jsonData = require('tzdata-factory');

In a browser, use the bundled UMD module provided in tzdata-factory.js.

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>tzdata-factory example</title>
    <script src="./tzdata-factory.js"></script>
    <script>
        function onLoad() {
            var data = tzdataFactory;
        }
    </script>
</head>
<body onLoad="onLoad()">
</body>
</html>

License

MIT

Zones in This Module

Factory