{"id":37178259,"url":"https://github.com/zitudu/go-ms","last_synced_at":"2026-01-14T20:46:39.145Z","repository":{"id":57547683,"uuid":"303054050","full_name":"zitudu/go-ms","owner":"zitudu","description":"Use this package to easily convert various time formats to milliseconds. This is a Go port of the Javascript ms library.","archived":false,"fork":false,"pushed_at":"2023-04-02T08:04:44.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T01:51:01.714Z","etag":null,"topics":["duration","go","go-ms","golang","milliseconds","ms","ms-go","time"],"latest_commit_sha":null,"homepage":"","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/zitudu.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":"2020-10-11T06:07:46.000Z","updated_at":"2023-04-02T07:44:15.000Z","dependencies_parsed_at":"2024-06-20T01:36:22.073Z","dependency_job_id":null,"html_url":"https://github.com/zitudu/go-ms","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zitudu/go-ms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zitudu%2Fgo-ms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zitudu%2Fgo-ms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zitudu%2Fgo-ms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zitudu%2Fgo-ms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zitudu","download_url":"https://codeload.github.com/zitudu/go-ms/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zitudu%2Fgo-ms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["duration","go","go-ms","golang","milliseconds","ms","ms-go","time"],"created_at":"2026-01-14T20:46:38.379Z","updated_at":"2026-01-14T20:46:39.134Z","avatar_url":"https://github.com/zitudu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-ms\n\n[![GoDoc](https://godoc.org/github.com/golang/gddo?status.svg)](https://pkg.go.dev/github.com/zitudu/go-ms)\n[![rcard](https://goreportcard.com/badge/github.com/json-iterator/go)](https://goreportcard.com/report/github.com/zitudu/go-ms)\n\nUse this package to easily convert various time formats to milliseconds. This is a Go port of [the Javascript ms library](https://github.com/vercel/ms).\n\n## Install\n\nRequires Go 1.11 and above. Run this command\n\n    go get github.com/zitudu/go-ms\n\n## Usage\n\n```go\nimport \"github.com/zitudu/go-ms\"\n\nage, err := ms.Parse(\"30days\") // 2592000000.000000\nexpiresIn := ms.MustParse(\"20 hrs\") // 72000000.000000\nms.FormatShort(60000) // 1m\nms.FormatLong(-3 * 60000) // -3 minutes\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzitudu%2Fgo-ms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzitudu%2Fgo-ms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzitudu%2Fgo-ms/lists"}