/timefmt

:clock4: A tiny command line utility for time conversion

Primary LanguageJavaScriptMIT LicenseMIT

🕓 timefmt

A tiny time converting util for the command line.

Build Status

📦 Installation

You can choose one of the following ways to install timefmt

🔰 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

🍻 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

❓ 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

ℹ️ Usage Information

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

⭐ License

MIT License - See LICENSE for details.