{"id":16602114,"url":"https://github.com/ppalone/duration-parser","last_synced_at":"2025-10-26T19:05:58.644Z","repository":{"id":240223882,"uuid":"801999283","full_name":"ppalone/duration-parser","owner":"ppalone","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-17T10:22:10.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T08:45:12.755Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ppalone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-05-17T10:18:15.000Z","updated_at":"2024-05-17T10:29:02.000Z","dependencies_parsed_at":"2024-05-17T12:52:25.307Z","dependency_job_id":null,"html_url":"https://github.com/ppalone/duration-parser","commit_stats":null,"previous_names":["ppalone/duration-parser"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppalone%2Fduration-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppalone%2Fduration-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppalone%2Fduration-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppalone%2Fduration-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppalone","download_url":"https://codeload.github.com/ppalone/duration-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242692347,"owners_count":20170228,"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-10-12T00:20:25.439Z","updated_at":"2025-10-26T19:05:53.588Z","avatar_url":"https://github.com/ppalone.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Duration Parser\n\nA small golang library to parse YouTube video duration format (eg `DD:HH:MM:SS`)\n\n## How to get?\n\n```\ngo get github.com/ppalone/duration-parser\n```\n\n## Format\n\nYouTube video duration format is `DD:HH:MM:SS` (For example `01:10:45:01`)\n\n```\nDD: Days\nHH: Hours (must be less than or equal to 23)\nMM: Minutes (must be less than or equal to 59)\nSS: Seconds (must be less than or equal to 59)\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\tparser \"github.com/ppalone/duration-parser\"\n)\n\nfunc main() {\n\ts := \"01:30\"\n\td, _ := parser.Parse(s)\n\tfmt.Println(\"Duration in seconds:\", d.Seconds())\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppalone%2Fduration-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppalone%2Fduration-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppalone%2Fduration-parser/lists"}