[pmwiki-users] Highlight pagelist search results based on time thresholds
design5 at softflow.co.uk
Sun Jul 13 17:53:04 CDT 2008
Sunday, July 13, 2008, 11:37:19 PM, Patrick R. Michaud wrote:
> Might need to be careful with something like -30days...-8days,
> as it's not entirely clear that -8days as an endpoint would
> be the exact same moment in time that -7days.. produces.
> I.e., there could be some overlap or gaps.
> I'm not saying it doesn't work -- I'd just test it carefully
> with pages at or near the boundaries.
You are right. I am more comfortable using math comparisons
from Cookbook/ConditionalExtensions, ie.
(:if lt ... rather than (:if date ....
Certainly less ambiguous, less room for error.
But 'date' conditionals look so invitingly simple to use...
More information about the pmwiki-users