{"id":22226464,"url":"https://github.com/zhw2590582/duration-time-conversion","last_synced_at":"2025-07-27T18:31:58.994Z","repository":{"id":57217229,"uuid":"211813844","full_name":"zhw2590582/duration-time-conversion","owner":"zhw2590582","description":"Duration and time format conversion","archived":false,"fork":false,"pushed_at":"2024-08-13T01:36:00.000Z","size":11,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-11T20:30:02.946Z","etag":null,"topics":["conversion","duration","time"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/zhw2590582.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}},"created_at":"2019-09-30T08:35:03.000Z","updated_at":"2024-08-13T01:36:05.000Z","dependencies_parsed_at":"2023-01-22T18:00:51.327Z","dependency_job_id":null,"html_url":"https://github.com/zhw2590582/duration-time-conversion","commit_stats":null,"previous_names":["zhw2590582/duration-time"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhw2590582%2Fduration-time-conversion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhw2590582%2Fduration-time-conversion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhw2590582%2Fduration-time-conversion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhw2590582%2Fduration-time-conversion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhw2590582","download_url":"https://codeload.github.com/zhw2590582/duration-time-conversion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227827777,"owners_count":17825739,"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":["conversion","duration","time"],"created_at":"2024-12-03T00:29:10.583Z","updated_at":"2024-12-03T00:29:11.243Z","avatar_url":"https://github.com/zhw2590582.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# duration-time-conversion\n\n\u003e Duration and time format conversion\n\n## Install\n\nInstall with `npm`\n\n```bash\n$ npm install duration-time-conversion\n```\n\nOr install with `yarn`\n\n```bash\n$ yarn add duration-time-conversion\n```\n\n```js\nimport DT from \"duration-time-conversion.js\";\n```\n\nOr umd builds are also available\n\n```html\n\u003cscript src=\"path/to/duration-time-conversion.js\"\u003e\u003c/script\u003e\n```\n\nWill expose the global variable to `window.DT`.\n\n## Usage\n\n```js\n// Duration to time\nDT.d2t(3661.111) === \"01:01:01.111\";\n\n// Time to Duration\nDT.t2d(\"01:01:01.111\") === 3661.111;\n```\n\n## License\n\nMIT © [Harvey Zack](https://sleepy.im/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhw2590582%2Fduration-time-conversion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhw2590582%2Fduration-time-conversion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhw2590582%2Fduration-time-conversion/lists"}