https://github.com/fvd/timepaster
Console time calculator that copies the result to the system clipboard
https://github.com/fvd/timepaster
Last synced: 11 months ago
JSON representation
Console time calculator that copies the result to the system clipboard
- Host: GitHub
- URL: https://github.com/fvd/timepaster
- Owner: FvD
- License: gpl-2.0
- Created: 2015-07-13T22:07:32.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-14T19:54:30.000Z (about 11 years ago)
- Last Synced: 2023-08-02T03:02:46.481Z (almost 3 years ago)
- Language: Python
- Size: 148 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
timepaster
====================
A very simple command line time card calculator to get the decimal difference
between hh:mm-hh:mm. The basis of the code was copied a long time ago from a
page I cannot find anymore, so I cannot cite the original author (I would like
to, though).
This is typically something you can use if you have to fill in time sheets or
time tracking software. On the commandline you would do the following:
$ timepaster
$ Enter Start-End (hh:mm-hh:mm): 09.36-11.18
and the result is displayed as:
Duration: 1 hrs and 42 min
Decimal difference: 1.7
______________________________
**The decimal time difference is also loaded into the clipboard**. So now you can
just "paste" (ctrl-v) from your system clipboard and the calculated value
will appear.
The time notation with points is simply because 09.36 is faster to type
on a numpad than 09:36.
Type "quit" to exit the commandline app.
**TODO:**
- Use copied time calculatoin strings as input (copy: 12.36-16.42 and place the
result in the clipboard)
- Accept different time formats (as long as they are consistent) such as
01.36, 01:36, 1:36.