>From e85bd48ee3ba39c2bd365cabddd695a32a0184fa Mon Sep 17 00:00:00 2001 From: Ivan Vilata i Balaguer
Date: Wed, 28 Nov 2012 20:57:55 +0100 Subject: [PATCH] Allow relative times in clocktable tstart and tend options * lisp/org-clock.el (org-clock-get-table-data): Pass tstart and tend time strings through `org-matcher-time' to allow relative times besides absolute ones, convert result to encoded time. * doc/org.texi (The clock table): Document acceptance of relative times in tstart and tend, link to syntax description and provide example. Inspired in the original relative times proposal by Ilya Shlyakhter, this is less invasive and it doesn't modify core functions, thus it avoids the original's infinite recursion when hitting normal dates in other locations. TINYCHANGE --- doc/org.texi | 9 +++++++++ lisp/org-clock.el | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/doc/org.texi b/doc/org.texi index bf67876..e3a40ec 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -6263,7 +6263,11 @@ be selected: thisyear, lastyear, address@hidden @r{a relative year} @r{Use @address@hidden/@key{right}} keys to shift the time interval.} :tstart @r{A time string specifying when to start considering times.} + @r{Relative times like @code{"<-2w>"} can also be used. See} + @address@hidden tags and properties} for relative time syntax.} :tend @r{A time string specifying when to stop considering times.} + @r{Relative times like @code{"