{"id":27062717,"url":"https://github.com/imufeng/second","last_synced_at":"2025-04-05T15:19:14.363Z","repository":{"id":45553435,"uuid":"513794450","full_name":"iMuFeng/second","owner":"iMuFeng","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-14T07:57:27.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-21T13:05:51.291Z","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/iMuFeng.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":"2022-07-14T07:00:50.000Z","updated_at":"2022-07-14T07:03:31.000Z","dependencies_parsed_at":"2022-09-26T21:30:37.266Z","dependency_job_id":null,"html_url":"https://github.com/iMuFeng/second","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iMuFeng%2Fsecond","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iMuFeng%2Fsecond/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iMuFeng%2Fsecond/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iMuFeng%2Fsecond/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iMuFeng","download_url":"https://codeload.github.com/iMuFeng/second/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247353738,"owners_count":20925334,"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":"2025-04-05T15:19:13.745Z","updated_at":"2025-04-05T15:19:14.355Z","avatar_url":"https://github.com/iMuFeng.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Second\n\n[![Tests](https://github.com/iMuFeng/second/actions/workflows/test.yml/badge.svg)](https://github.com/iMuFeng/second/actions)\n[![Go Version](https://img.shields.io/github/go-mod/go-version/iMuFeng/second?label=Go)](https://github.com/iMuFeng/second/blob/master/go.mod)\n[![Go Ref](https://pkg.go.dev/badge/github.com/iMuFeng/second)](https://pkg.go.dev/github.com/iMuFeng/second)\n\n[This module](https://pkg.go.dev/github.com/iMuFeng/second) is a Go implementation of [ms](https://github.com/vercel/ms).\n\n# Install\n\n```\ngo get github.com/iMuFeng/second\n```\n\n## Examples\n\n```go\nsecond.Parse('2 days')  // 172800\nsecond.Parse('1d')      // 86400\nsecond.Parse('10h')     // 36000\nsecond.Parse('2.5 hrs') // 9000\nsecond.Parse('2h')      // 7200\nsecond.Parse('1m')      // 60\nsecond.Parse('5s')      // 5\nsecond.Parse('1y')      // 31557600\nsecond.Parse('-3 days') // -259200\nsecond.Parse('-1h')     // -3600\n```\n\n## License\n\n[MIT License](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimufeng%2Fsecond","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimufeng%2Fsecond","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimufeng%2Fsecond/lists"}