3 ms·
I wrote a small program to manage my contracting time after it being gently suggested that I stick to 40 hours and that overtime wasn't needed of me (calculate
by NaturalPhallacy 5y ago
I wrote a small program to manage my contracting time after it being gently suggested that I stick to 40 hours and that overtime wasn't needed of me (calculate hours per day and when to leave Friday to hit 40.0). I wrote it so that usage was absolutely as lazy as possible. So typical use cases look like this:
>$ tm 8:30-12:30 12:40-
Time to leave: 16:40
so as to hit 8.0 hours for the day.
and
>$ tm 8.5 9.27 8.83 8.87 9:45-1:23 1:33-
14:11
54 minutes
is an example of when to leave (early!) on Friday to hit 40.0
Note how you don't have to tell it AM/PM or use 24 hour time. Nor give it any special flags to tell it which calculation to run. And it just handles the rollover at noon for you.
source: https://github.com/cynoclast/time https://github.com/cynoclast/time (Java, because that's what I used at the time)