A beautiful time calculation CLI
The totaltime
tool provides a quick and easy way to complete timesheet calculations right in the terminal.
$ gem install totaltime
$ gem install totaltime --source "https://rubygems.pkg.github.com/nikxda"
To use it, call totaltime
in your terminal. The app will guide you from there.
$ totaltime
To specify durations, you can pass multiple formats to totaltime
. It will always let you know whether your input is valid or not and convert it into a readable duration.
Input Format | Example | Description |
---|---|---|
hh:mm |
01:30 , 2:5 |
The default duration format. |
:mm |
:30 , :90 |
Specify just minutes. |
hh |
2 , 5 |
Specify just hours. |
h.f |
1.5 , .5 |
Specify hours and minutes as a float. |
This package supports several command line arguments as specified below.
Option/s | Type | Default | Description |
---|---|---|---|
--help , -h |
boolean |
- | Show a help document. |
MIT