[pmwiki-users] Conditional Directive based on time - standards

Simon s-i-m-o-n at paradise.net.nz
Thu Oct 13 01:57:28 CDT 2005


http://www.cl.cam.ac.uk/~mgk25/iso-time.html ISO 8601 is useful.

I suggest that dates be formatted yyyy-mm-dd
and could we also allow times, eg hh:mm    (24 hour time of course)

I also support allowing for yyyy
and yyyy-mm
where it is understood that this is the "last" or highest day of that 
time interval is used

My suggestions

(: if date future "2005-10-13 21:00" :)
(:if date past 2004-09-09 :)
(:if date between yyyy-mm-dd yyyy-mm-dd :) (:comment assumed to be 
inclusive:)
and optionally after any date you can have
+ n {year month week day hour minute second}
if not specified assumes days
eg
(: if date between 2004-11-09 2004-11-09 + 4 weeks:)


Simon


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.
>
>
>Best, 
>~Hans                           
>
>
>
>_______________________________________________
>pmwiki-users mailing list
>pmwiki-users at pmichaud.com
>http://host.pmichaud.com/mailman/listinfo/pmwiki-users
>
>
>  
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20051013/2946b835/attachment.html 


More information about the pmwiki-users mailing list