timew-dom
Timewarrior DOM
- Provided by: timewarrior (Version: 1.9.1+ds.1-1)
- Source: timew
- Report a bug
Timewarrior DOM
All DOM references start with dom, there are 4 subreferences that can be accessed:
All intervals
dom.tracked.count Count of all intervals in the query result dom.tracked.ids Ids of all intervals in the query result dom.tracked.tags Tags of all intervals in the query result dom.tracked.tags.count Count of all tags in the query result dom.tracked.tags.<n> N-th Tag of all tags in the query result
dom.tracked.<n> is a reference to the n-th interval of the database query result. Depending on the filtering applied, the n-th interval is not necessarily the one with ID @n!
dom.tracked.<n>.tags All tags of the n-th interval dom.tracked.<n>.tags.count Count of tags of the n-th interval dom.tracked.<n>.tags.<m> N-th interval, m-th tag dom.tracked.<n>.start N-th interval, start time (ISO Extended date) dom.tracked.<n>.end N-th interval, end time (ISO Extended date, blank if open) dom.tracked.<n>.duration N-th interval, duration (ISO Duration) dom.tracked.<n>.json N-th interval, as JSON
Active time tracking
dom.active '1' if there is active tracking, otherwise '0' dom.active.tags All tags of the active tracking dom.active.tags.count Count of tags dom.active.tags.<n> N-th tag dom.active.start Start timestamp (ISO Extended date) dom.active.duration Elapsed (ISO Period) dom.active.json Interval as JSON
All tags
dom.tags All tags dom.tags.count Count of all tags dom.tags.1 N-th tag
Without filtering applied, dom.tracked.tags refers to the same set of tags as dom.tags.
Configuration settings
dom.rc.<name> Configuration setting <name>