\define long()<$view tiddler=<<timestamp>> field=title format=date template="0hh:0mm" />\end
<$list filter="""[<timestamp>length[]match[9]then<timestamp>else<long>]""" variable="type"/>22:34~Entry with old time stamp <br />
20200520223405903~Entry with new time stamp <br />
- Why not make a batch operation to standardise the title in one go?
\define timeonly(timestamp)
<$list filter="[[$timestamp$]length[]]" variable=length>
<$list filter="[<length>match[5]]" variable=nul>
$timestamp$<br>
</$list>
<$list filter="[<length>match[17]]" variable=nul>
{{{ [[$timestamp$]remainder[100000000]divide[1000000]trunc[]] }}}:{{{ [[$timestamp$]remainder[1000000]divide[10000]trunc[]] }}}<br>
</$list>
</$list>
\end
<$list filter="20200520223405903 23:45 22:21" variable=timestamp>
<$macrocall $name=timeonly timestamp=<<timestamp>>/>
</$list>
- I have one possible solution which needs me to spit the longer timestamp into separate characters but the split[] operator does not do this.
{{{ aabbcc +[split[]] }}}
{{{ [[aabbcc]split[]] }}}
{{{ [[$date$]split[]] }}}<$set name=1h filter="[{!!modified}split[]]" select=8>
<$set name=0h filter="[{!!modified}split[]]" select=9>
<$set name=1m filter="[{!!modified}split[]]" select=10>
<$set name=0m filter="[{!!modified}split[]]" select=11>
<<1h>><<0h>>:<<1m>><<0m>>
</$set></$set></$set></$set>