A tiny time converting util for the command line.
You can choose one of the following ways to install timefmt
You can use npm
or yarn
(or any other package manager of your choice) to install this utility.
# when using npm
npm i -g timefmt
# when using yarn
yarn global add timefmt
If you've Homebrew installed, simply run:
# tap the timefmt formula
brew tap pddstudio/timefmt
# Install timefmt using brew
brew install timefmt
See timefmt --help
for usage instructions.
Convert 1m 30s
to ms
:
timefmt 1m 30s --output ms
# => The given input time 1m 30s equals: 90000 ms
Run timefmt --help for a list of all available commands, conversion outputs and more.
MIT License - See LICENSE for details.