Hey, Stef —
I was running into some of the issues you mentioned when I tried to put
together the example for @TiddlyTweeter.
1.) Apparently, a date from a tiddler field is accepted only when it is
> formatted as "YYYYMMDD" (but not e.g. "YYYY-MM-DD"). Maybe you could add
> this info to the documentation?
>
Actually, YYYY-MM-DD is processed as a date if it's transcluded directly.
I'm guessing you used the DATE function, which converts TiddlyWiki
timestamps to dates but (somewhat stupidly) doesn't convert dates or
strings in "YYYY-MM-DD" format to dates. (I'll have to fix that.) You can
include the date directly by transcluding, eg. {{!!date}} but be advised
there's a bug where the month is off by one. It's fixed in the Git
repository and I'll release the fix later today.
2.) I created a group of tiddlers with the same tag. (...) Using the "sum"
> function here is a bit clumsy, though.
Yes, it's pretty lame that the only thing you can do with filters at the
moment is sum them (meaning strings like "2015-10-01" can't be meaningfully
included). I'll need to add some more functions to expand the options
there.
I should probably come up with a more intuitive term than "datum" to
describe information "included" via filters, transclusion and variables. I
fear that currently the distinction between these values and literal ones
is a bit unclear.
On Monday, 18 December 2017 14:34:25 UTC-6, [email protected] wrote:
>
> Hi,
>
> On Monday, December 18, 2017 at 12:14:02 AM UTC+1, Evan Balster wrote:
>>
>>
>> Please continue experimenting and reporting any issues you turn up. I'll
>> be interested to see if the date & time stuff suits the needs of the users
>> who've chimed in about that.
>>
>
> Very cool! Thank you!
>
> Two quick observations:
>
> 1.) Apparently, a date from a tiddler field is accepted only when it is
> formatted as "YYYYMMDD" (but not e.g. "YYYY-MM-DD"). Maybe you could add
> this info to the documentation?
>
> 2.) I created a group of tiddlers with the same tag. Each tiddler contains
> a date in the "datum" field. I was able to pick the latest date from the
> list and add 14 days with the following syntax:
>
> (= date(sum([tag<currentTiddler>!sort[]last[1]get[datum]],14)) =)
>
> Using the "sum" function here is a bit clumsy, though (because only one
> argument is provided). Is there any other way to get "date" to accept the
> filter result?
>
> Cheers,
>
> Stef
>
--
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/8bc94c00-bbf5-4c64-8f07-e8c173130dae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.