{"id":24764452,"url":"https://github.com/seamapi/zoned-time","last_synced_at":"2026-02-20T19:04:06.810Z","repository":{"id":216779037,"uuid":"741283309","full_name":"seamapi/zoned-time","owner":"seamapi","description":"A ZonedTime is a PlainTime with a TimeZone, as specified in the Temporal Proposal.","archived":false,"fork":false,"pushed_at":"2026-01-28T22:34:36.000Z","size":487,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-02-08T00:41:14.398Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/seamapi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-10T04:25:32.000Z","updated_at":"2025-04-08T20:59:26.000Z","dependencies_parsed_at":"2024-01-12T20:15:44.235Z","dependency_job_id":"2b92a1ab-0b99-4323-9af9-1fe8dfab9d06","html_url":"https://github.com/seamapi/zoned-time","commit_stats":null,"previous_names":["seamapi/zoned-time"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/seamapi/zoned-time","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seamapi%2Fzoned-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seamapi%2Fzoned-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seamapi%2Fzoned-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seamapi%2Fzoned-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seamapi","download_url":"https://codeload.github.com/seamapi/zoned-time/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seamapi%2Fzoned-time/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29661585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T16:33:43.953Z","status":"ssl_error","status_checked_at":"2026-02-20T16:33:43.598Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-01-28T22:31:20.274Z","updated_at":"2026-02-20T19:04:06.790Z","avatar_url":"https://github.com/seamapi.png","language":"TypeScript","readme":"# ZonedTime\n\n[![npm](https://img.shields.io/npm/v/zoned-time.svg)](https://www.npmjs.com/package/zoned-time)\n[![GitHub Actions](https://github.com/seamapi/zoned-time/actions/workflows/check.yml/badge.svg)](https://github.com/seamapi/zoned-time/actions/workflows/check.yml)\n\nA ZonedTime is a [PlainTime] with a [TimeZone], as specified in the [Temporal] proposal.\n\n[PlainTime]: https://tc39.es/proposal-temporal/docs/plaintime.html\n[TimeZone]: https://tc39.es/proposal-temporal/docs/timezone.html\n[Temporal]: https://tc39.es/proposal-temporal/docs/\n\n## Description\n\nA `ZonedTime` is a timezone-aware time object that represents a time of day in a particular time zone.\nIt serializes to a normalized format which is simple to parse:\n\n```js\nTemporal.ZonedTime.from('19:53[Europe/Berlin]').toString()\n// =\u003e 19:53+01:00[Europe/Berlin]\n```\n\nThe implementation closely follows the other Temporal specifications\nas a natural extension of the standard.\n\n_A `ZonedTime` implements most of the same methods as `PlainTime`.\nSome methods of `PlainTime` are still being evaluated for inclusion in `ZonedTime`._\n\n## Motivation\n\n- A time of day, without a reference to a particular date, is useful for the representation of recurring daily events or events that adapt to local time.\n- `Temporal.PlainTime` is a promising standard for representing a time of day, but does not incorporate the time zone.\n- Many contexts require a time zone to unambiguously interpret the time of day.\n- There is no standard de-facto format for time of day that clearly incorporates time zone information, so a new standard or derivative standard is necessary.\n\n### Alternatives\n\n- ISO8601/RFC3339 is an excellent standard for representing a point in time.,\n  but does not work well for representing recurring daily events such as a meeting that occurs every day at 9am.\n- The iCal standard represents recurring events,\n  but is not widely an accepted standard for representing simple daily recurring events.\n\n## Installation\n\nAdd this as a dependency to your project using [npm] with\n\n```\n$ npm install zoned-time\n```\n\n[npm]: https://www.npmjs.com/\n\n## Usage\n\n```ts\nimport { ZonedTime } from 'zoned-time'\n\nconst zonedTime = ZonedTime.from('14:05:00[America/Los_Angeles]')\nzonedTime.toString() //=\u003e '14:05:00[America/Los_Angeles]'\n```\n\n## Development and Testing\n\n### Quickstart\n\n```\n$ git clone https://github.com/seamapi/zoned-time.git\n$ cd zoned-time\n$ nvm install\n$ npm install\n$ npm run test:watch\n```\n\nPrimary development tasks are defined under `scripts` in `package.json`\nand available via `npm run`.\nView them with\n\n```\n$ npm run\n```\n\n### Source code\n\nThe [source code] is hosted on GitHub.\nClone the project with\n\n```\n$ git clone git@github.com:seamapi/zoned-time.git\n```\n\n[source code]: https://github.com/seamapi/zoned-time\n\n### Requirements\n\nYou will need [Node.js] with [npm] and a [Node.js debugging] client.\n\nBe sure that all commands run under the correct Node version, e.g.,\nif using [nvm], install the correct version with\n\n```\n$ nvm install\n```\n\nSet the active version for each shell session with\n\n```\n$ nvm use\n```\n\nInstall the development dependencies with\n\n```\n$ npm install\n```\n\n[Node.js]: https://nodejs.org/\n[Node.js debugging]: https://nodejs.org/en/docs/guides/debugging-getting-started/\n[npm]: https://www.npmjs.com/\n[nvm]: https://github.com/creationix/nvm\n\n### Publishing\n\n#### Automatic\n\nNew versions are released automatically with [semantic-release]\nas long as commits follow the [Angular Commit Message Conventions].\n\n[Angular Commit Message Conventions]: https://semantic-release.gitbook.io/semantic-release/#commit-message-format\n[semantic-release]: https://semantic-release.gitbook.io/\n\n#### Manual\n\nPublish a new version by triggering a [version workflow_dispatch on GitHub Actions].\nThe `version` input will be passed as the first argument to [npm-version].\n\nThis may be done on the web or using the [GitHub CLI] with\n\n```\n$ gh workflow run version.yml --raw-field version=\u003cversion\u003e\n```\n\n[GitHub CLI]: https://cli.github.com/\n[npm-version]: https://docs.npmjs.com/cli/version\n[version workflow_dispatch on GitHub Actions]: https://github.com/seamapi/zoned-time/actions?query=workflow%3Aversion\n\n## GitHub Actions\n\n_GitHub Actions should already be configured: this section is for reference only._\n\nThe following repository secrets must be set on [GitHub Actions]:\n\n- `NPM_TOKEN`: npm token for installing and publishing packages.\n- `GH_TOKEN`: A personal access token for the bot user with\n  `contents:write` permission.\n- `GIT_USER_NAME`: The GitHub bot user's real name.\n- `GIT_USER_EMAIL`: The GitHub bot user's email.\n- `GPG_PRIVATE_KEY`: The GitHub bot user's [GPG private key].\n- `GPG_PASSPHRASE`: The GitHub bot user's GPG passphrase.\n\n[GitHub Actions]: https://github.com/features/actions\n[GPG private key]: https://github.com/marketplace/actions/import-gpg#prerequisites\n\n## Contributing\n\n\u003e If using squash merge, edit and ensure the commit message follows the [Angular Commit Message Conventions] specification.\n\u003e Otherwise, each individual commit must follow the [Angular Commit Message Conventions] specification.\n\n1. Create your feature branch (`git checkout -b my-new-feature`).\n2. Make changes.\n3. Commit your changes (`git commit -am 'Add some feature'`).\n4. Push to the branch (`git push origin my-new-feature`).\n5. Create a new draft pull request.\n6. Ensure all checks pass.\n7. Mark your pull request ready for review.\n8. Wait for the required approval from the code owners.\n9. Merge when ready.\n\n[Angular Commit Message Conventions]: https://semantic-release.gitbook.io/semantic-release/#commit-message-format\n\n## License\n\nThis npm package is licensed under the MIT license.\n\n## Warranty\n\nThis software is provided by the copyright holders and contributors \"as is\" and\nany express or implied warranties, including, but not limited to, the implied\nwarranties of merchantability and fitness for a particular purpose are\ndisclaimed. In no event shall the copyright holder or contributors be liable for\nany direct, indirect, incidental, special, exemplary, or consequential damages\n(including, but not limited to, procurement of substitute goods or services;\nloss of use, data, or profits; or business interruption) however caused and on\nany theory of liability, whether in contract, strict liability, or tort\n(including negligence or otherwise) arising in any way out of the use of this\nsoftware, even if advised of the possibility of such damage.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseamapi%2Fzoned-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseamapi%2Fzoned-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseamapi%2Fzoned-time/lists"}