Ah, so *single* curly braces, thanks!
I'm not sure I'll ever completely understand when to use which variation. :)
On Saturday, March 13, 2021 at 12:22:10 PM UTC-5 Mark S. wrote:
> Oh, that's an easier question:
>
> <<list-links "[sameday:created{!!created}]">>
>
> The sameday filter does understand timezones and "sameday", but it doesn't
> understand about hard-coded values, despite what the documentation says. So
> it will use your local time to match sameday with an existing tiddler. But
> not if you do your own (e.g. 20210313)
>
> On Saturday, March 13, 2021 at 6:56:13 AM UTC-8 [email protected] wrote:
>
>> Well sorry, I don't actually want <<now>>. I want the created date of the
>> current tiddler, but I think the overall question is the same, which is,
>> how do I show a list of tiddlers created on the same day (date) as the
>> current tiddler. This will eventually be a macro, possibly.
>>
>>
>> On Saturday, March 13, 2021 at 9:48:39 AM UTC-5 Jack Baty wrote:
>>
>>> I'm still tinkering with this.
>>>
>>> Thanks to Mark for suggesting adding the Timezone to the sameday filter.
>>> That works, but I can't find it documented anywhere. On the DateFormat
>>> page <https://tiddlywiki.com/#DateFormat> "TZD" is mentioned as
>>> Timezone format option but in use it renders as "-5:00" not "05". I've
>>> found that only "05" works when used in the sameday operator, e.g.:
>>>
>>> <<list-links filter:"[sameday:created[2021031305]!is[system]]">>
>>>
>>> This works (by works I mean that sameday lists tiddlers created on the,
>>> er, same day).
>>>
>>> I'm obviously not capable of understanding documentation, because the
>>> only way I can find to show a list of tiddlers created on the same day as
>>> the current tiddler is something like this:
>>>
>>> <$set name="thedate" value=<<now YYYY0MMDD>>>
>>> <<list-links filter:"[sameday:created[$(thedate)$05]!is[system]]">>
>>> </$set>
>>>
>>> Note the hardcoded "05". Also, this seems somewhat convoluted. There
>>> *must* be a better way to just include the YYYYMMDD formated date as
>>> part of the filter operator without setting a variable, right? And it's
>>> probably something obvious and simple that I've overlooked. I get confused
>>> around "<<foo>>" vs "$foo$" vs "$(foo)$" vs "[[foo]]" and I cannot figure
>>> out how to just put the "now YYYY0MMDD" bit right in the filter.
>>>
>>>
>>>
>>> On Tuesday, March 2, 2021 at 2:36:56 PM UTC-5 Jack Baty wrote:
>>>
>>>> I'll try the offset, thanks. I'd be happy with a string match on
>>>> "20210302*", too though, as that's always the day I'm looking for. Half
>>>> the
>>>> reason I got out of development was to avoid dealing with timezones :)
>>>>
>>>> On Tuesday, March 2, 2021 at 1:18:08 PM UTC-5 Mark S. wrote:
>>>>
>>>>> If you add your offset to the time, then I think you'll get the
>>>>> results you want. That is, if you're in Lima (utc -5), you might use
>>>>>
>>>>> sameday:created[2021030205]
>>>>>
>>>>> If you live in the other direction, then the math is harder. If you
>>>>> live in Yekaterinburg (utc +5), then I assume you would have to use:
>>>>>
>>>>> sameday:created[2021030119]
>>>>>
>>>>>
>>>>>>
>>>
>>
--
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/79893391-ee39-466f-83dd-e0a385dad785n%40googlegroups.com.