Solved, I created a JS macro for it

thanks

On Wednesday, May 20, 2020 at 7:54:48 PM UTC+3, Tony K wrote:
>
> is it possible to manipulate a timestamp without the $view?
>
> I have timestamp saved in 2 formats 
>
> old format 0hh:0mm and new format <<now "[UTC]YYYY0MM0DD0hh0mm0ssXXX">>
>
> I am trying to make my code backward compatible so what I need is when I 
> read the time stamp from the tiddler and display it in both cases as 
> 0hh:0mm 
>
> I tried to work with length 
>
> \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"/>
>
> but in that case it is being evaluated to the full text and not the value 
> :|
>
> thanks in advance 
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/328f1f5b-e304-4bfa-95ac-76d06f847580%40googlegroups.com.

Reply via email to