it is a string but <$view tiddler=<<timestamp>> field=title format=date template="0hh:0mm" /> works in both cases
the code is very long it is at https://akhater.github.io/drift/ $:/ak/plugins/DailyNotes/ui/capture On Wednesday, May 20, 2020 at 8:00:57 PM UTC+3, Saq Imtiaz wrote: > > Is <timestamp> a string with the timestamp, or a tiddler title? Perhaps > post the entirety of your code as I don't quite understand what timestamp > represents in each case. > > On Wednesday, May 20, 2020 at 6:54:48 PM UTC+2, 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/9c7ae009-dab9-4fe6-a160-f2f2742a16a5%40googlegroups.com.

