{"id":19320903,"url":"https://github.com/info-mono/ms2duration","last_synced_at":"2026-05-18T05:13:00.708Z","repository":{"id":134997259,"uuid":"369225721","full_name":"info-mono/ms2duration","owner":"info-mono","description":"⏲️ Milliseconds to duration converter","archived":false,"fork":false,"pushed_at":"2022-01-08T09:05:48.000Z","size":29,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-06T05:25:32.253Z","etag":null,"topics":["basher","bpkg","cli","converter","duration","info-mono","posix","terminal","time"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/info-mono.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":{"custom":["https://www.buymeacoffee.com/nnbnh","https://nhantien.momo.vn/nnb"]}},"created_at":"2021-05-20T13:54:34.000Z","updated_at":"2023-02-13T19:59:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"4e6b607c-b639-458a-bc7e-14fa13faa02b","html_url":"https://github.com/info-mono/ms2duration","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/info-mono%2Fms2duration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/info-mono%2Fms2duration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/info-mono%2Fms2duration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/info-mono%2Fms2duration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/info-mono","download_url":"https://codeload.github.com/info-mono/ms2duration/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240422249,"owners_count":19798719,"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":["basher","bpkg","cli","converter","duration","info-mono","posix","terminal","time"],"created_at":"2024-11-10T01:33:41.750Z","updated_at":"2025-11-17T05:01:00.904Z","avatar_url":"https://github.com/info-mono.png","language":"Shell","funding_links":["https://www.buymeacoffee.com/nnbnh","https://nhantien.momo.vn/nnb"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\u003ccode\u003ems2duration\u003c/code\u003e\u003c/h1\u003e\n\u003cp align=\"center\"\u003eMilliseconds to duration converter\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003ca href=\"https://github.com/info-mono/ms2duration/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/info-mono/ms2duration?labelColor=383838\u0026color=585858\u0026style=for-the-badge\" alt=\"License: GPL-3.0\"\u003e\u003c/a\u003e \u003ca href=\"https://gist.github.com/NNBnh/9ef453aba3efce26046e0d3119dab5a7#development-completed\"\u003e\u003cimg src=\"https://img.shields.io/badge/development-completed-%23585858.svg?labelColor=383838\u0026style=for-the-badge\u0026logoColor=FFFFFF\" alt=\"Development completed\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n## 💡 About\n`ms2duration` is a tool to convert milliseconds to a full durations represent a length of time written in [`portable sh`](https://github.com/dylanaraps/pure-sh-bible) inspired by [Nushell's duration data type](https://www.nushell.sh/book/types_of_data.html#duration) and [Starship's Command duration module](https://starship.rs/config/#command-duration).\n\n## 🚀 Setup\n### 🧾 Dependencies\n- [Unix commands](https://en.wikipedia.org/wiki/List_of_Unix_commands) to process\n\n### 📥 Installation\n#### 🔧 Manually\nOption 1: using `curl`\n```sh\ncurl https://raw.githubusercontent.com/info-mono/ms2duration/main/bin/ms2duration \u003e ~/.local/bin/ms2duration\nchmod +x ~/.local/bin/ms2duration\n```\n\nOption 2: using `git`\n```sh\ngit clone https://github.com/info-mono/ms2duration.git ~/.local/share/ms2duration\nln -s ~/.local/share/ms2duration/bin/ms2duration ~/.local/bin/ms2duration\n```\n\n#### 📦 Package manager\nFor [Bpkg](https://github.com/bpkg/bpkg) user:\n```sh\nbpkg install info-mono/ms2duration\n```\n\nFor [Basher](https://github.com/basherpm/basher) user:\n```sh\nbasher install info-mono/ms2duration\n```\n\n\u003e *If you can and want to port ms2duration to other package managers, feel free to do so.*\n\n## ⌨️ Usage\nRun 'ms2duration' in the terminal:\n```sh\nms2duration MILLISECONDS\n```\n\n## 💌 Credits\nSpecial thanks to:\n- [**Nushell**](https://www.nushell.sh) by [it's contributors](https://github.com/nushell/nushell/graphs/contributors)\n- [**Starship**](https://starship.rs) by [it's contributors](https://github.com/starship/starship/graphs/contributors)\n\n\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\n\n---\n\n\u003e \u003ch1 align=\"center\"\u003eMade with ❤️ by \u003ca href=\"https://github.com/info-mono\"\u003e\u003ccode\u003e@info-mono\u003c/code\u003e\u003c/a\u003e\u003c/h1\u003e\n\u003e\n\u003e \u003cp align=\"center\"\u003e\u003ca href=\"https://www.buymeacoffee.com/nnbnh\"\u003e\u003cimg src=\"https://img.shields.io/badge/buy_me_a_coffee%20-%23F7CA88.svg?logo=buy-me-a-coffee\u0026logoColor=333333\u0026style=for-the-badge\" alt=\"Buy Me a Coffee\"\u003e\u003c/a\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfo-mono%2Fms2duration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfo-mono%2Fms2duration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfo-mono%2Fms2duration/lists"}