Use relative time expressions in select filters
Extension to tiddlyweb select filters to use relative time statements.
Where a filter is:
one could expect either a tiddlywiki timestamp string, a fragment thereof, or some numbers that end with ‘d’, ‘s’, ‘m’, ‘h’, ‘y’ (case insensitive) meaning Days, Seconds, Minutes, Hours, Years. We don’t worry about months. If the trailing letter is there, we translate it into an absolute time in the past, relative to now.
It’s important to note that the translation happens _before_ the > or < is interpreted. So while
at first glance reads as “select those entities with a modified more than one day ago” it is actually, if we say today is 20110302, “select those entities with a modified greater than 20110302” (i.e. those thing modified within the last day).
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|tiddlywebplugins.relativetime-0.5.tar.gz (5.4 kB) Copy SHA256 hash SHA256||Source||None||Nov 12, 2011|