11 Commits
Author SHA1 Message Date
karl 4fe4e3ecbf Display hours as a number rather than formatted days
This is useful because the total time is usually not sensibly interpreted as days. Also negatives times were really odd.

Includes some autoformating.
2021-07-11 20:03:07 +02:00
karl a980216fb5 Add simple installation script 2020-12-17 20:01:32 +01:00
karl 36b5d7a6d7 Add proper README 2020-12-15 21:57:46 +01:00
karl 5cf69dcee5 Proper naming and help text 2020-12-15 21:51:24 +01:00
karl ebe9548fb3 Add bill option; fix negative minutes
The minutes were positive even when the hours were negative. This is obviously undesired, we want the entire time to be negative. That was fixed.
2020-12-15 21:38:01 +01:00
karl 93655127db Implement 'create' and 'add' modes 2020-12-15 21:32:07 +01:00
karl 6915ea0368 Add subparses for modes
this allows for varying additional parameters based on mode.
2020-12-15 21:20:26 +01:00
karl f4a2735da0 Add prototype 'add' mode 2020-12-15 20:11:40 +01:00
karl 20a66b8f48 Add mode argument, default 'total' 2020-12-15 00:34:52 +01:00
karl 59722e19a2 Add option to pass a different file
time.txt in the current directory is the default, but another path can be passed too.
2020-12-15 00:14:00 +01:00
karl abf61299a0 Add basic code and example 2020-12-14 23:50:16 +01:00