Mark,

Yes it does presume the future date exists, and this is practical if you 
have scheduled events. 

I do have an algorithm that can help with core tools only. Basically you do 
not forward date items you list them retrospectively and stamp them when 
reviewed..

Imagine something you wish to do fortnightly, stamp a field called 
fortnightly with now. Then create a tiddler called fortnightly and list all 
tiddlers with a fortnightly stamp older 14 days (the days operator does 
this). When you review that item hit a date stamp button that updates the 
fortnightly field and it will leave the list for a fortnight.

I am sure a variation of this would work for seed germination, it just 
takes a little cognitive sumersault.

Regards
Tony

On Wednesday, October 16, 2019 at 2:09:58 AM UTC+11, Mark S. wrote:
>
> Hi Tony,
>
> Your approach assumes that there is a tiddler with a date field stamped 
> accordingly. In this case there probably 
> would not be such a thing.
>
> I suppose you could pre-generate a year's worth of tiddlers, but that 
> seems inefficient.
>
> Putting a calendar in a dictionary tiddler might work too, and would allow 
> you to not have to use the awkward TW 
> date format.
>
> Use case
>
> With the javascript plugin, using TWC, I once had a fairly complete garden 
> application. You have your seeds which
> have a variety of important day markers: days til germination, days til 
> harvest. You need to know if the plants are 
> on track. So you add the number of days to germination to the plant date, 
> and then you can see if you are on
> schedule. Repeat for harvest days. Since these are all future dates, there 
> is unlikely to be existing tiddlers with
> those date stamps.
>
> Thanks!
>
> On Monday, October 14, 2019 at 6:41:46 PM UTC-7, TonyM wrote:
>>
>> Mark,
>>
>> I have successfully used Evans formulae plugin for this, however the 
>> native method I know of is as follows;
>>
>> Although the days operator will not return the date for you to make use 
>> of it will be able to find tiddlers in which contain a standard date field 
>> that comply with the days operator, so you would use days[+6] days[+10] 
>> days[+90] to look that many days into the future.
>>
>> you can then utilise a second days operator to eliminate days prior to 
>> today.
>>
>> Here is a reply that I did in the past 
>> <https://groups.google.com/d/msg/tiddlywiki/fbszxrvatvA/kCQzCDFwAAAJ>that 
>> helps using the days operator but not the use of two at once.
>>
>> The trick I have found with the days operator is it is always relative to 
>> today, ie +4 or -4 represents dates passing through today
>>
>>    - + 4 all dates in the future back today and further into the past
>>    - - 4 all days from 4 days ago through today in into the future
>>
>> So (without retesting} [days[+4]days[-1] would be all dates upto 4 days 
>> in the future and also from yesterday (including those in the future).
>> Since the days operator returns the tiddler titles, from which you can 
>> extract the date that resulted from the days operator, you can do more with 
>> the date if required.
>>
>> Warnings
>>
>>    - It is quite easy to use two days operators that result in nothing 
>>    because you eliminate all
>>    - Using the not ! and the + and - values can quickly trip you up 
>>    because you are doing binary backflips, double negatives etc.. 
>>
>>
>> On Wednesday, August 21, 2019 at 12:11:35 AM UTC+10, Mark S. wrote:
>>>
>>> Or better yet, "6 days from given date."
>>>
>>> Yes, I know there are plugins to allow additional math abilities.
>>>
>>> But is there any way to do date math with existing core tools? Since 
>>> there are a bunch of new math tools? I didn't see anything
>>> that looked like it could do date math, but maybe I'm missing something?
>>>
>>> In particular, I'd like to calculate  6, 10, 90 days out.
>>>
>>> Thanks!
>>>
>>

-- 
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/0ceb197a-e837-49a8-aa6d-361f8bdefba3%40googlegroups.com.

Reply via email to