{"id":20226298,"url":"https://github.com/mathix420/iso-time-parser","last_synced_at":"2026-05-27T23:31:56.932Z","repository":{"id":191156021,"uuid":"684030242","full_name":"mathix420/iso-time-parser","owner":"mathix420","description":"ISO 8601 Time parser (not date, nor duration)","archived":false,"fork":false,"pushed_at":"2023-08-29T16:58:56.000Z","size":179,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-09T02:44:53.421Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://mathix420.github.io/iso-time-parser/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mathix420.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2023-08-28T09:58:18.000Z","updated_at":"2023-08-29T09:35:44.000Z","dependencies_parsed_at":"2024-10-23T00:30:02.038Z","dependency_job_id":null,"html_url":"https://github.com/mathix420/iso-time-parser","commit_stats":{"total_commits":21,"total_committers":2,"mean_commits":10.5,"dds":"0.23809523809523814","last_synced_commit":"cb9df3630ce87c2cf6bb2a47a96cd35fba868cd3"},"previous_names":["mathix420/iso-time-parser"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/mathix420/iso-time-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathix420%2Fiso-time-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathix420%2Fiso-time-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathix420%2Fiso-time-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathix420%2Fiso-time-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathix420","download_url":"https://codeload.github.com/mathix420/iso-time-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathix420%2Fiso-time-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33588345,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-11-14T07:17:15.899Z","updated_at":"2026-05-27T23:31:56.919Z","avatar_url":"https://github.com/mathix420.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iso-time-parser\n\n[ISO 8601](https://www.wikiwand.com/fr/ISO_8601) Time parser (not date, nor duration)\n\n[![wakatime](https://wakatime.com/badge/github/mathix420/iso-time-parser.svg)](https://wakatime.com/badge/github/mathix420/iso-time-parser) [![Maintainability](https://api.codeclimate.com/v1/badges/4bead95feb66403d44c1/maintainability)](https://codeclimate.com/github/mathix420/iso-time-parser/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/4bead95feb66403d44c1/test_coverage)](https://codeclimate.com/github/mathix420/iso-time-parser/test_coverage) [![Bubdle Size](https://badgen.net/bundlephobia/minzip/iso-time-parser)](https://bundlephobia.com/package/iso-time-parser)\n\n## Installation\n\n```bash\nnpm i iso-time-parser\n```\n\n## Usage/Example\n\n[Full Documentation](https://mathix420.github.io/iso-time-parser/)\n\n**Example:**\n\n```typescript\nimport { parse, toLocalTime, toUTC } from 'iso-time-parser';\n\n// Local time is Central European Summer Time (CEST) in this example\n// Pulled from `new Date().getTimezoneOffset()`\n\nparse('T11:22:33,4444Z').then(console.log);\n// {\n//   hours: 11,\n//   minutes: 22,\n//   seconds: 33,\n//   fracSec: 4444,\n//   rawShift: { hours: 0, minutes: 0, sign: 1 },\n//   shiftInMinutes: 0\n// }\n\nparse('T11:22:33,4444Z').then(toLocalTime).then(console.log);\n// {\n//   hours: 13,\n//   minutes: 22,\n//   seconds: 33,\n//   fracSec: 4444,\n//   rawShift: { hours: 2, minutes: 0, sign: -1 },\n//   shiftInMinutes: -120\n// }\n\nparse('T11:22:33,4444+03:45').then(toLocalTime).then(console.log);\n// {\n//   hours: 9,\n//   minutes: 37,\n//   seconds: 33,\n//   fracSec: 4444,\n//   rawShift: { hours: 1, minutes: 45, sign: 1 },\n//   shiftInMinutes: 105\n// }\n\nparse('T11:22:33,4444+03:45').then(toUTC).then(console.log);\n// {\n//   hours: 7,\n//   minutes: 37,\n//   seconds: 33,\n//   fracSec: 4444,\n//   rawShift: { hours: 3, minutes: 45, sign: 1 },\n//   shiftInMinutes: 225\n// }\n```\n\n## Development\n\n**Install deps**\n\n```bash\nnpm i\n```\n\n**Build/bundle package**\n\n```bash\nnpm run build\n```\n\n**Build docs**\n\n```bash\nnpx typedoc src/index.ts\n```\n\n**Bump version**\n\n```bash\nnpm version {major, minor, patch}\n```\n\n**Publish**\n\n```bash\nnpm publish --access public\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathix420%2Fiso-time-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathix420%2Fiso-time-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathix420%2Fiso-time-parser/lists"}