Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

timefmt

pddstudio31MIT1.1.2

A tiny command line utility for time conversion

time, conversion, cli, format, time-formatting

readme

:clock4: timefmt

A tiny time converting util for the command line.

:package: Installation

You can choose one of the following ways to install timefmt

:beginner: Install via your favorite Node Package Manager

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

:beers: Install via Homebrew (MacOS)

If you've Homebrew installed, simply run:

# tap the timefmt formula
brew tap pddstudio/timefmt
# Install timefmt using brew
brew install timefmt

:question: Usage

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

:information_source: Usage Information

Run timefmt --help for a list of all available commands, conversion outputs and more.

:star: License

MIT License - See LICENSE for details.