<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<a class="moz-txt-link-freetext" href="http://www.cl.cam.ac.uk/~mgk25/iso-time.html">http://www.cl.cam.ac.uk/~mgk25/iso-time.html</a> ISO 8601 is useful.<br>
<br>
I suggest that dates be formatted yyyy-mm-dd<br>
and could we also allow times, eg hh:mm (24 hour time of course)<br>
<br>
I also support allowing for yyyy<br>
and yyyy-mm<br>
where it is understood that this is the "last" or highest day of that
time interval is used<br>
<br>
My suggestions<br>
<br>
(: if date future "2005-10-13 21:00" :)<br>
(:if date past 2004-09-09 :)<br>
(:if date between yyyy-mm-dd yyyy-mm-dd :) (:comment assumed to be
inclusive:)<br>
and optionally after any date you can have <br>
+ n {year month week day hour minute second} <br>
if not specified assumes days<br>
eg<br>
(: if date between 2004-11-09 2004-11-09 + 4 weeks:)<br>
<br>
<br>
Simon<br>
<br>
<br>
Hans wrote:
<blockquote cite="mid1096399379.20051012172507@flutesong.fsnet.co.uk"
type="cite">
<pre wrap="">Wednesday, October 12, 2005, 5:17:14 PM, Jonathan wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap=""><!---->
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
<a class="moz-txt-link-abbreviated" href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a>
<a class="moz-txt-link-freetext" href="http://host.pmichaud.com/mailman/listinfo/pmwiki-users">http://host.pmichaud.com/mailman/listinfo/pmwiki-users</a>
</pre>
</blockquote>
<br>
</body>
</html>