{"id":20510314,"url":"https://github.com/frobware/comptime","last_synced_at":"2025-03-05T22:26:08.930Z","repository":{"id":231505758,"uuid":"781929807","full_name":"frobware/comptime","owner":"frobware","description":"Parse composite time durations","archived":false,"fork":false,"pushed_at":"2024-09-18T22:02:07.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-24T07:38:23.340Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/frobware.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":"2024-04-04T10:08:13.000Z","updated_at":"2024-09-18T22:02:10.000Z","dependencies_parsed_at":"2024-04-04T11:28:42.363Z","dependency_job_id":"ad3d67eb-a147-4657-970f-5c183c1487e2","html_url":"https://github.com/frobware/comptime","commit_stats":null,"previous_names":["frobware/comptime"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frobware%2Fcomptime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frobware%2Fcomptime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frobware%2Fcomptime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frobware%2Fcomptime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frobware","download_url":"https://codeload.github.com/frobware/comptime/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242112686,"owners_count":20073651,"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":[],"created_at":"2024-11-15T20:28:57.086Z","updated_at":"2025-03-05T22:26:08.906Z","avatar_url":"https://github.com/frobware.png","language":"Go","readme":"# comptime: Parse composite time durations, including support for days\n\nThe `comptime` package (composite time) extends the capabilities of the standard library's `time.ParseDuration` function. It introduces support for 'days', amongst other features.\n\n## Key Features\n\n- Supports 'days' as an additional time unit (denoted by 'd').\n- Flexible parsing modes:\n  - Multi-unit mode for parsing composite strings (e.g., \"24d20h31m23s647ms\").\n  - Single-unit mode to ensure only one unit type is present.\n- Custom range checking via a callback function, allowing for user-defined limits and early termination.\n- Ability to specify a default unit for values without an explicit unit (e.g., interpreting \"500\" as 500ms).\n\n## Performance\n\n`comptime` is designed for efficiency. For detailed performance comparisons with the standard library, see [BENCHMARKS.md](./BENCHMARKS.md).\n\n## Development\n\n```sh\n$ make\n$ make benchmark\n$ make benchmark-profile\n```\n\nFor more detailed information and usage examples, please refer to the [package documentation](https://pkg.go.dev/github.com/frobware/comptime).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrobware%2Fcomptime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrobware%2Fcomptime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrobware%2Fcomptime/lists"}