Update of /var/cvs/src/org/mmbase/util
In directory james.mmbase.org:/tmp/cvs-serv4664

Modified Files:
        DynamicDate.java 
Log Message:
javadoc


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/util


Index: DynamicDate.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/util/DynamicDate.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- DynamicDate.java    23 Aug 2008 18:56:31 -0000      1.19
+++ DynamicDate.java    18 Oct 2008 10:24:26 -0000      1.20
@@ -20,6 +20,22 @@
  * date could be an argument of an 'after' or 'before' method, it is better to 
wrap it with [EMAIL PROTECTED]
  * DynamicDate#eval} first.
  *
+ * Basicly the following dynamic dates are possible:
+ * <ul>
+ * <li>&lt;an integer number&gt;: seconds since january 1 1970</li>
+ * <li>&lt;integer&gt;-&lt;integer&gt;: year-daynumber</li>
+ * <li>&lt;integer&gt;-W&lt;integer&gt;: year-weeknumber</li>
+ * <li>&lt;integer&gt;-&lt;integer&gt;-&lt;integer&gt;
+ * [&lt;integer&gt;:&lt;:integer&gt;:&lt;:float&gt;: year-month-day 
[hour:minute:seconds]</li>
+ * <li>today, yesterday, tomonth, etc. : many strings are recognized</li>
+ * </ul>
+ * The then found (absolute) date/time can then be offsetted with aditions 
like "- 1 minute", "+ 5
+ * week". I.e. one of the binary operators '-' or '+' an integer and a time 
unit (in the
+ * singular). This process can be repeated so things like 'now + 5 minute + 3 
second' will be
+ * correctly parsed.
+ *
+ * [EMAIL PROTECTED] #getDemo} returns a list of several strings which can be 
parsed.
+ *
  * @author  Michiel Meeuwissen
  * @since MMBase-1.8
  */
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to