A builder for timezone data.
This is work in progress.
This is a re-implementation in Python of the JavaScript build scripts from moment-timezone for exporting IANA timezone data to JSON format.
The resulting package can be installed from npmjs.
npm install --save @jetblack/tzdata
See @jetblack/date for usage instructions.
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.