Mark et al,,
On the subject of dates is their a method to transform a date in the form
YYYY0MM0DD or similar into date serial number?
'
Thanks in advance
Tony
On Tuesday, November 28, 2017 at 9:23:14 AM UTC+11, Mark S. wrote:
>
> This date thing is always confusing. Won't using !!created rather than
> <$view...> result in a date that will be off by some number of hours from
> UTC? People at ground zero UTC won't notice, but people further away will.
>
> On another note, has anyone noticed that there might be a problem with
> sameday in 5.1.15?
>
> This code:
>
> <<list-links "[sameday[20171127]]">>
>
> works in 5.1.14 but not in 5.1.15. To make it work, you have to add an
> hour field:
>
> <<list-links "[sameday[2017112726]]">>
>
> Notice that this works despite the nonsensical Hour 26.
>
> I looked through the release notes, but didn't see anything relating to
> sameday.
>
> -- Mark
>
> On Monday, November 27, 2017 at 1:10:13 PM UTC-8, Eric Shulman wrote:
>>
>> On Monday, November 27, 2017 at 12:45:51 PM UTC-8, Stefan Spycher wrote:
>>>
>>> so, the thing i found is <$list filter=[sameday[20171127]]></$list>
>>> but what i'm having a hard time figuring out is how i can substitude the
>>> hardcoded date to the 'created' date of the current tiddler (which is the
>>> daily journal tiddler, so it's create date is exactly what i could use)
>>> long story short, how to use the <currentTiddler> created date in the
>>> correct format (YYYYMMDD) as date for the sameday operator?
>>>
>>
>> You can use any valid date **field reference** (i.e., {!!created} or
>> {!!modified}) as the parameter value. You can also specify an operator
>> *suffix* to indicate which field to compare with.
>>
>> Note that, as per the documentation for the sameday filter: "D may
>> include a time of day, but this is ignored."
>>
>> Thus, for your use-case:
>> <$list filter="[sameday:created{!!created}]
>> [sameday:modified{!!created}]">
>> <li><$link><$text text=<<currentTiddler>>/></$link></li>
>> </$list>
>>
>> Note the use of two concatenated filter expressions to select tiddler by
>> "created" OR "modified" field value matching the current tiddlers "created"
>> date.
>>
>> enjoy,
>> -e
>> Eric Shulman
>> TiddlyTools.com: "Small Tools for Big Ideas!" (tm)
>> InsideTiddlyWiki: The Missing Manuals
>>
>
--
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/d83ae3ee-aa97-4d1b-8660-345da8829d23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.