Granddave / timecalc

Simple CLI tool that calculates the total time spent on a project given time ranges and time intervals.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linting, formatting and tests

Timecalc

Simple CLI tool that calculates the total time spent on a project given time ranges and intervals.

How to use

$ ./timecalc.py --help
usage: timecalc.py [-h] time_parts [time_parts ...]

Calculates the total time of a given set of time ranges and intervals

positional arguments:
  time_parts  Time ranges or intervals, e.g. 9:00-12:30, 1h or -30m

optional arguments:
  -h, --help  show this help message and exit

Let's say that you work the whole morning and have a daily standup for 15 minutes and a coffe break for 30 minutes. In the afternoon you work two hours:

$ ./timecalc.py 7:00-12:00 -15m -30m 2h
6h 15m

Requirements

  • Python >=3.6

About

Simple CLI tool that calculates the total time spent on a project given time ranges and time intervals.

License:MIT License


Languages

Language:Python 100.0%