{"id":28228227,"url":"https://github.com/namesmt/timezone-convert","last_synced_at":"2026-01-20T17:27:11.614Z","repository":{"id":292563474,"uuid":"981294886","full_name":"NamesMT/timezone-convert","owner":"NamesMT","description":"Convert between timezone formats","archived":false,"fork":false,"pushed_at":"2025-05-29T06:22:45.000Z","size":350,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T06:31:09.168Z","etag":null,"topics":["cli","convert","iana","timezone","tzid","windows","windows-timezone"],"latest_commit_sha":null,"homepage":"https://namesmt.github.io/timezone-convert/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NamesMT.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-10T19:23:34.000Z","updated_at":"2025-05-29T06:22:48.000Z","dependencies_parsed_at":"2025-05-10T19:40:44.422Z","dependency_job_id":null,"html_url":"https://github.com/NamesMT/timezone-convert","commit_stats":null,"previous_names":["namesmt/timezone-convert"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/NamesMT/timezone-convert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamesMT%2Ftimezone-convert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamesMT%2Ftimezone-convert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamesMT%2Ftimezone-convert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamesMT%2Ftimezone-convert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NamesMT","download_url":"https://codeload.github.com/NamesMT/timezone-convert/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamesMT%2Ftimezone-convert/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259512028,"owners_count":22869328,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","convert","iana","timezone","tzid","windows","windows-timezone"],"created_at":"2025-05-18T14:09:36.730Z","updated_at":"2026-01-20T17:27:11.579Z","avatar_url":"https://github.com/NamesMT.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003ch1\u003etimezone-convert\u003c/h1\u003e\n\n\u003ch3\u003eConvert between timezone formats\u003c/h3\u003e\n\u003cimg src=\"./branding.svg\" alt=\"Project's branding image\" width=\"320\"/\u003e\n\n\u003c/div\u003e\n\n# timezone-convert ![TypeScript heart icon](https://img.shields.io/badge/♡-%23007ACC.svg?logo=typescript\u0026logoColor=white)\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![Codecov][codecov-src]][codecov-href]\n[![Bundlejs][bundlejs-src]][bundlejs-href]\n\n* [timezone-convert ](#timezone-convert-)\n  * [Overview](#overview)\n    * [Important notes](#important-notes)\n      * [Imperfect accuracy](#imperfect-accuracy)\n      * [Partial 'etcetera' and 'backward' zones for IANA](#partial-etcetera-and-backward-zones-for-iana)\n  * [Features](#features)\n  * [Usage](#usage)\n    * [CLI](#cli)\n    * [Programatic](#programatic)\n      * [Install package](#install-package)\n      * [Import \\\u0026 use:](#import--use)\n  * [License](#license)\n\n## Overview\n\n**timezone-convert** is a small and efficient utility library and CLI for (smart parsing and) converting between timezone formats.\n\n### Important notes\n\n#### Imperfect accuracy\n\nThe primary goal of the project is to focus on converting from one timezone format into a roughly accurate representation in other formats for possible of use with other libraries (e.g Windows display name from calendar =\u003e TZID / IANA for datetime manipulation), and AS SIMPLE AS POSSIBLE, things like extensive array mapping (Windows id =\u003e Multiple IANA ids) won't be available.\n\n#### Partial 'etcetera' and 'backward' zones for IANA\n\nThe project will only supports the `ETC` IANA ids that is also used by Windows, and only supports the commonly-used `backward` IANA ids (like `America/Indianapolis`), uncommon ids like `WET`, `W-SU` is not supported, but in a fast-check, this library should support a few more commonly-used ids than `windows-iana`.\n\n## Features\n\n* Parsing and converting between:\n  * Windows display name\n  * Windows time zone id\n  * IANA (Olsen) tzdb ids\n* Auto parse from any formats, just `parseTzAuto(str)`\n\n## Usage\n\n### CLI\n\n```sh\nnpx timezone-convert \"Europe/Athens\"\n# Outputs a JSON string of the parsed timezone\n# { iana, windowsId, windowsDisplay }\n\n# Example use with `jq`\nnpx -y timezone-convert Asia/Saigon | jq '.windowsDisplay'\n```\n\n### Programatic\n\n#### Install package\n\n```sh\n# npm\nnpm install timezone-convert\n\n# bun\nbun add timezone-convert\n\n# pnpm (recommended)\npnpm install timezone-convert\n```\n\n#### Import \u0026 use:\n\n```ts\n// ESM\nimport { parseTzAuto } from 'timezone-convert'\n\nconst bucharestTz = parseTzAuto('Europe/Bucharest')\n```\n\n## License\n\n[![License][license-src]][license-href]\n\n\u003c!-- Badges --\u003e\n\n[npm-version-src]: https://img.shields.io/npm/v/timezone-convert?labelColor=18181B\u0026color=F0DB4F\n[npm-version-href]: https://npmjs.com/package/timezone-convert\n[npm-downloads-src]: https://img.shields.io/npm/dm/timezone-convert?labelColor=18181B\u0026color=F0DB4F\n[npm-downloads-href]: https://npmjs.com/package/timezone-convert\n[codecov-src]: https://img.shields.io/codecov/c/gh/namesmt/timezone-convert/main?labelColor=18181B\u0026color=F0DB4F\n[codecov-href]: https://codecov.io/gh/namesmt/timezone-convert\n[license-src]: https://img.shields.io/github/license/namesmt/timezone-convert.svg?labelColor=18181B\u0026color=F0DB4F\n[license-href]: https://github.com/namesmt/timezone-convert/blob/main/LICENSE\n[bundlejs-src]: https://img.shields.io/bundlejs/size/timezone-convert?labelColor=18181B\u0026color=F0DB4F\n[bundlejs-href]: https://bundlejs.com/?q=timezone-convert\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamesmt%2Ftimezone-convert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnamesmt%2Ftimezone-convert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamesmt%2Ftimezone-convert/lists"}