Skip to content

rob-blackbourn/jetblack-tzdata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jetblack-tzdata

A builder for timezone data.

This is work in progress.

Overview

This is a re-implementation in Python of the JavaScript build scripts from moment-timezone for exporting IANA timezone data to JSON format.

Installation

The resulting package can be installed from npmjs.

npm install --save @jetblack/tzdata

Usage

See @jetblack/date for usage instructions.

Development

To build the package, first install it to a virtual environment with poetry. Then run build-tzdata. This will create the packages in the package folder. The package can then be published to npmjs.

Note: The version in package/package.json must be updated manually.

python3 -m venv .venv
. .venv/bin/activate
poetry install
build-tzdata \
    --iana-version latest \
    --iana-version 2022a \
    --iana-version 2022g \
    --iana-version 2023a \
    --iana-version 2023b \
    --iana-version 2023c \
    --overwrite
cd package && npm publish --access public.

About

A builder for tzdata

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages