[pmwiki-users] Conditional Directive based on time
dominique.faure at gmail.com
Thu Oct 13 01:24:50 CDT 2005
2005/10/12, Jonathan Scott Duff <duff at pobox.com>:
> On Wed, Oct 12, 2005 at 05:25:07PM +0100, Hans wrote:
> > Wednesday, October 12, 2005, 5:17:14 PM, Jonathan wrote:
> > > doesn't optimizing for authors (ala, PmWikiPhilosophy #1) mean not to
> > > confuse them if at all possible? It's simpler for authors to remember to
> > > always use "YYYYMMDD" for dates. It's simpler for authors to remember
> > > that the dates they write/read are always included in ranges.
> > I agree totally. Just allow only YYYYMMDD formats.
> > Now could it be made possible to write
> > (:if date 20051012 +30 :) meaning from the 12/10/05 for 30 days?
> > Or even
> > (:if date today +30 :) meaning from today for 30 days?
> > The 'today' would need to be substituted with the correct date format
> > when saving the page.
> What does "today" mean exactly? Do you expect pmwiki to replace
> "today" with the date of the day you wrote that?
And also what does "+30" mean exactly? Surely a suffix is required here:
+1y -3mo +17d (+5h -8m +3s)
More information about the pmwiki-users