Docs: Updated exclusion syntax

This commit is contained in:
Paul Beckingham 2016-04-17 12:22:02 -04:00
parent 42215f7a36
commit 2d7a9769d1
3 changed files with 17 additions and 16 deletions

View file

@ -59,12 +59,12 @@ exclusions.
An example file looks like this:
exc monday 8:00:00-12:00:00 12:45:00-17:30:00
exc tuesday 8:00:00-12:00:00 12:45:00-18:30:00
exc wednesday 8:00:00-12:00:00 13:30:00-17:30:00
exc thursday 8:00:00-12:00:00 12:45:00-17:30:00
exc friday 8:00:00-12:00:00 12:45:00-17:30:00
exc day on 2016-01-01
exc monday <8:00:00 12:00:00-12:45:00 >17:30:00
exc tuesday <8:00:00 12:00:00-12:45:00 >18:30:00
exc wednesday <8:00:00 12:00:00-13:30:00 >17:30:00
exc thursday <8:00:00 12:00:00-12:45:00 >17:30:00
exc friday <8:00:00 12:00:00-12:45:00 >17:30:00
exc day on 2016-01-01
exc day off 2016-01-02
inc 20160228T080000Z - 20160228T120000Z # Upgrade Planning

View file

@ -35,11 +35,11 @@ Or if you forgot a whole activity:
More sophisticated use is possible if you have defined your work week with:
define exclusions:
monday = 8:00:00-12:00:00 12:45:00-17:30:00
tuesday = 8:00:00-12:00:00 12:45:00-18:30:00
wednesday = 8:00:00-12:00:00 13:30:00-17:30:00
thursday = 8:00:00-12:00:00 12:45:00-17:30:00
friday = 8:00:00-12:00:00 12:45:00-17:30:00
monday = <8:00:00 12:00:00-12:45:00 >17:30:00
tuesday = <8:00:00 12:00:00-12:45:00 >18:30:00
wednesday = <8:00:00 12:00:00-13:30:00 >17:30:00
thursday = <8:00:00 12:00:00-12:45:00 >17:30:00
friday = <8:00:00 12:00:00-12:45:00 >17:30:00
$ timew track yesterday Home Painting

View file

@ -77,11 +77,12 @@ Because exclusions are resolved at run time, and only when needed, they should
be stored in a readily-interpreted form:
define exclusions:
monday = 8:00:00-12:00:00 12:45:00-17:30:00
tuesday = 8:00:00-12:00:00 12:45:00-18:30:00
wednesday = 8:00:00-12:00:00 13:30:00-17:30:00
thursday = 8:00:00-12:00:00 12:45:00-17:30:00
friday = 8:00:00-12:00:00 12:45:00-17:30:00
monday = <8:00:00 12:00:00-12:45:00 >17:30:00
tuesday = <8:00:00 12:00:00-12:45:00 >18:30:00
wednesday = <8:00:00 12:00:00-13:30:00 >17:30:00
thursday = <8:00:00 12:00:00-12:45:00 >17:30:00
friday = <8:00:00 12:00:00-12:45:00 >17:30:00
days:
2016_01_01 = Working
2016_01_02 = Off