2015-12-23 12:19:47 +00:00
|
|
|
tags: [[Operator Examples]] [[days Operator]]
|
|
|
|
title: days Operator (Examples)
|
2015-07-03 22:31:37 +00:00
|
|
|
type: text/vnd.tiddlywiki
|
|
|
|
|
2015-12-23 12:19:47 +00:00
|
|
|
<<.operator-example 1 "[days[-14]]" "tiddlers modified within the last 14 days">>
|
|
|
|
<<.operator-example 2 "[!days:created[-800]]" "tiddlers created more than 800 days ago">>
|
2015-07-09 06:26:15 +00:00
|
|
|
The filter can be used to highlight new items in a list. For example:
|
|
|
|
<$macrocall
|
|
|
|
$name="wikitext-example-without-html" src=
|
|
|
|
"""
|
|
|
|
<ul>
|
|
|
|
<$list filter="[tag[ReleaseNotes]!<currentTiddler>!sort[modified]]">
|
|
|
|
<li>
|
2017-09-16 14:29:44 +00:00
|
|
|
<$link><$view field="title"/></$link>
|
|
|
|
<$list filter="[<currentTiddler>days[-180]]"> @@color:red;^^new^^@@</$list>
|
|
|
|
<$list filter="[<currentTiddler>days[-500]!days[-180]]"> @@color:black;^^recent^^@@</$list>
|
2015-07-09 06:26:15 +00:00
|
|
|
</li>
|
|
|
|
</$list>
|
|
|
|
</ul>
|
|
|
|
"""/>
|