Dave,
I also Updated
\define date-time(template date-field)
<$set name=template value="$template$" emptyValue="""<$macrocall $name="now"
format={{$:/config/now-format}} />""" >
<$set name=date-field value=<<date-field>> emptyValue="$date-field$">
<$set name=date-field value=<<date-field>> emptyValue="created">
<$macrocall $name=return-date-time template=<<template>>/>
</$set></$set></$set>
\end
\define return-date-time(template)
<$view field=<<date-field>> format="date" template="$template$"/>
\end
$:/config/now-format example = hh:0mm
<<date-time "YYYY-0MM-0DD hh:0mm">>
<<date-time "Modified YYYY-0MM-0DD at hh:0mm" modified>>
:Can also set variable date-field
It is missing the desired result that when no parameters are given it
provides *Now* time.
Regards
Tony
On Wednesday, December 4, 2019 at 10:42:47 AM UTC+11, Dave wrote:
>
> You (Tony), all those macros, including the date-time one. I can
> understand how it works partially, but an example wiki would be beneficial
> to get all the use cases you have in mind.
>
> But no hurry - as you say its "almost complete"
>
> On Tuesday, December 3, 2019 at 4:12:06 PM UTC-7, TonyM wrote:
>>
>> Dave,
>>
>> Whos reply are you referring to here?
>>
>> That looks cool, do you have any more examples of it in use in a TW
>>> somewhere? I pasted all that in a tiddler but don't quite get how they work
>>>
>>
>> Tony
>>
>
--
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/18ca73ec-2c12-4f73-ab8e-a72d8eac8db1%40googlegroups.com.