timewarrior icon indicating copy to clipboard operation
timewarrior copied to clipboard

Support excluding specific hours of a day for a specific day

Open zakkak opened this issue 3 years ago • 3 comments

Right now we are able to exclude:

  1. whole days with timew config exclusions.days.2021_12_24 = off
  2. ranges within a day of a week with `timew config exclusions.monday '<9:00 12:40-13:10 >17:30'

But there is no way to exclude part of a single day, e.g. the afternoon of the 24th of December. Intuitively I would expect something like timew config exclusions.days.2021_12_24 = '>12:00' to work.

Thanks for this simple yet great tool :)

zakkak avatar Dec 22 '21 07:12 zakkak

Related to #4 where a new syntax for exclusions is proposed. With this, your example would be something like

exclusion = 2021-12-24 >12:00

or maybe

exclusion = 12-24 >12:00

if you have Christmas regularly as a half workday.

lauft avatar Jan 02 '22 18:01 lauft

Thanks for the pointer @lauft, the proposed syntax looks fine to me :)

zakkak avatar Jan 04 '22 07:01 zakkak

I see this is still open, so I'll add another vote for "half day" exclusions on certain dates.

pberck avatar Jan 13 '23 10:01 pberck