Add: Timestamp selectors :on a number
This ought to be pretty thorough now.
This commit is contained in:
parent
c2ecbc67a5
commit
49d0fa8306
3 changed files with 90 additions and 7 deletions
11
README.org
11
README.org
|
|
@ -207,15 +207,22 @@ Arguments are listed next to predicate names, where applicable.
|
|||
:TOC: ignore
|
||||
:END:
|
||||
|
||||
All of these selectors take optional keyword arguments ~:from~, ~:to:~, and ~:on~. If ~:from~, return non-nil if entry has a timestamp on or after ~:from~. If ~:to~, return non-nil if entry has a timestamp on or before ~:to~. If ~:on~, return non-nil if entry has a timestamp on date ~:on~. Argument values should be either ~ts~ structs, or strings parseable by ~parse-time-string~ which may omit the time value.
|
||||
All of these selectors take optional keyword arguments ~:from~, ~:to:~, and ~:on~:
|
||||
|
||||
+ If ~:from~, return non-nil if entry has a timestamp on or after ~:from~.
|
||||
+ If ~:to~, return non-nil if entry has a timestamp on or before ~:to~.
|
||||
+ If ~:on~, return non-nil if entry has a timestamp on date ~:on~.
|
||||
|
||||
Argument values should be either a number of days (positive to look forward, or negative to look backward), a ~ts~ struct, or a string parseable by ~parse-time-string~ which may omit the time value.
|
||||
|
||||
*Selectors:*
|
||||
+ ~ts~ :: Return non-nil if current entry has a timestamp in given period. If no arguments are specified, return non-nil if entry has any timestamp.
|
||||
+ ~ts-active~ :: Like ~ts~, but only matches active timestamps.
|
||||
+ ~ts-a~ :: Like ~ts~, but only matches active timestamps.
|
||||
+ ~ts-inactive~ :: Like ~ts~, but only matches inactive timestamps.
|
||||
+ ~ts-i~ :: Like ~ts~, but only matches inactive timestamps.
|
||||
|
||||
The following selectors can also take a single argument, a number, which looks backward or forward a number of days. The number can also be negative to invert the direction.
|
||||
The following selectors, in addition to the keyword arguments, can also take a single argument, a number, which looks backward or forward a number of days. The number can be negative to invert the direction.
|
||||
|
||||
*Backward-looking:*
|
||||
+ ~clocked~ :: Return non-nil if current entry was clocked in given period. If no arguments are specified, return non-nil if entry was clocked at any time. Note: Clock entries are expected to be clocked out. Currently clocked entries (i.e. with unclosed timestamp ranges) are ignored.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue