Milliseconds to duration converter
ms2duration
is a tool to convert milliseconds to a full durations represent a length of time written in portable sh
inspired by Nushell's duration data type and Starship's Command duration module.
- Unix commands to process
Option 1: using curl
curl https://raw.githubusercontent.com/info-mono/ms2duration/main/bin/ms2duration > ~/.local/bin/ms2duration
chmod +x ~/.local/bin/ms2duration
Option 2: using git
git clone https://github.com/info-mono/ms2duration.git ~/.local/share/ms2duration
ln -s ~/.local/share/ms2duration/bin/ms2duration ~/.local/bin/ms2duration
For Bpkg user:
bpkg install info-mono/ms2duration
For Basher user:
basher install info-mono/ms2duration
If you can and want to port ms2duration to other package managers, feel free to do so.
Run 'ms2duration' in the terminal:
ms2duration MILLISECONDS
Special thanks to:
Made with ❤️ by
@info-mono