[pmwiki-users] Re: Conditional Directive based on time - standards
Neil Herber
nospam at eton.ca
Thu Oct 13 12:57:36 CDT 2005
At 2005-10-13 07:31 PM +0200, chr at home.se is rumored to have said:
>I haven't really followed this thread, but how about
>
> (:if 20051014 < date < 20051020:)
> (:if 20051014 <= date <= 20051020:)
In a word ... Yuk! ;-)
I find (:if date 20051015..20051019:) much better than (:if 20051014
< date < 20051020:).
It instantly shows the full range of valid dates without requiring
mental arithmetic. This may not seem too onerous until you consider:
(:if date 20051101..20051130:)
can be rendered in your scheme as:
(:if 20051031 < date < 20051201:)
With truncated dates (which I don't think are needed yet) this could
become (:if date 200511:)
Neil
Neil Herber
Corporate info at http://www.eton.ca/
Eton Systems, 15 Pinepoint Drive, Nepean, ON, Canada K2H 6B1
Tel: (613) 829-4668
More information about the pmwiki-users
mailing list