{"id":15314268,"url":"https://github.com/barelyhuman/timestamps","last_synced_at":"2026-02-09T16:04:34.879Z","repository":{"id":159479717,"uuid":"634678187","full_name":"barelyhuman/timestamps","owner":"barelyhuman","description":"A tiny timestamp parsing and formatting library (Node, Deno, ESM) ","archived":false,"fork":false,"pushed_at":"2023-05-01T08:57:14.000Z","size":35,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-09T07:35:48.359Z","etag":null,"topics":["deno","esm","library","node","parse","timestamps"],"latest_commit_sha":null,"homepage":"","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/barelyhuman.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},"funding":{"liberapay":"reaper","ko_fi":"barelyreaper","github":"barelyhuman","custom":"https://barelyreaper.gumroad.com/coffee"}},"created_at":"2023-04-30T22:20:15.000Z","updated_at":"2023-12-29T02:07:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"5c33504a-4664-4207-adf0-431ed6cbb473","html_url":"https://github.com/barelyhuman/timestamps","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/barelyhuman/timestamps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barelyhuman%2Ftimestamps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barelyhuman%2Ftimestamps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barelyhuman%2Ftimestamps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barelyhuman%2Ftimestamps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barelyhuman","download_url":"https://codeload.github.com/barelyhuman/timestamps/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barelyhuman%2Ftimestamps/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29271865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T13:47:44.167Z","status":"ssl_error","status_checked_at":"2026-02-09T13:47:43.721Z","response_time":56,"last_error":"SSL_read: 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":["deno","esm","library","node","parse","timestamps"],"created_at":"2024-10-01T08:44:54.914Z","updated_at":"2026-02-09T16:04:34.860Z","avatar_url":"https://github.com/barelyhuman.png","language":"JavaScript","funding_links":["https://liberapay.com/reaper","https://ko-fi.com/barelyreaper","https://github.com/sponsors/barelyhuman","https://barelyreaper.gumroad.com/coffee"],"categories":[],"sub_categories":[],"readme":"# @barelyhuman/timestamps\n\n\u003e A tiny timestamp parsing and formatting library\n\nThis is just an internal utility used by TillWhen for parsing and formatting\ntimestamps.\n\n## Installation\n\n```sh\nnpm i @barelyhuman/timestamps\n# or\nyarn add @barelyhuman/timestamps\n```\n\n## Usage\n\n```js\nimport {\n  fromSeconds,\n  fromMilliseconds,\n  formatSeconds,\n  formatMilliseconds,\n  parse,\n} from '@barelyhuman/timestamps'\n\nfromSeconds(3600) // {hours:1, minutes:0, seconds:0}\nfromMilliseconds(3600 * 1000) // {hours:1, minutes:0, seconds:0}\nformatSeconds(3600, '{hh}:{mm}:{ss}') // 01:00:00\nformatMilliseconds(3600 * 1000, '{hh}:{mm}:{ss}') // 01:00:00\nparse('01:00:00', '{hh}:{mm}:{ss}') // {hours:1, minutes:0, seconds:0}\n```\n\n## License\n\n[LICENSE](/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarelyhuman%2Ftimestamps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarelyhuman%2Ftimestamps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarelyhuman%2Ftimestamps/lists"}