Modified:
wiki/APIDocumentation.wiki
Log:
Edited wiki page through web user interface.
Modified: wiki/APIDocumentation.wiki
==============================================================================
--- wiki/APIDocumentation.wiki (original)
+++ wiki/APIDocumentation.wiki Wed May 14 12:50:01 2008
@@ -788,16 +788,16 @@
====Example====
{{{
-var tomorrow = new Date().add(1).day();
-Date.today().isAfter(tomorrow); // false
-Date.today().isBefore(tomorrow); // true
-
-var yesterday = new Date().add(-1).day();
-Date.today().isAfter(yesterday); // true
-Date.today().isBefore(yesterday); // false
-
-// No date to compare to...
-Date.today().isAfter(); // false
+var tomorrow = new Date().add(1).day();
+Date.today().isAfter(tomorrow); // false
+Date.today().isBefore(tomorrow); // true
+
+var yesterday = new Date().add(-1).day();
+Date.today().isAfter(yesterday); // true
+Date.today().isBefore(yesterday); // false
+
+// No date to compare to...
+Date.today().isAfter(); // false
Date.today().isBefore(); // true
}}}
@@ -823,16 +823,16 @@
====Example====
{{{
-var tomorrow = new Date().add(1).day();
-Date.today().isAfter(tomorrow); // false
-Date.today().isBefore(tomorrow); // true
-
-var yesterday = new Date().add(-1).day();
-Date.today().isAfter(yesterday); // true
-Date.today().isBefore(yesterday); // false
-
-// No date to compare to...
-Date.today().isAfter(); // false
+var tomorrow = new Date().add(1).day();
+Date.today().isAfter(tomorrow); // false
+Date.today().isBefore(tomorrow); // true
+
+var yesterday = new Date().add(-1).day();
+Date.today().isAfter(yesterday); // true
+Date.today().isBefore(yesterday); // false
+
+// No date to compare to...
+Date.today().isAfter(); // false
Date.today().isBefore(); // true
}}}
@@ -973,25 +973,6 @@
====See Also====
* [APIDocumentation#getWeek getWeek]
* [APIDocumentation#getISOWeek getISOWeek]
-
-.
-==http://www.datejs.com/images/function.gif getElapsed==
- ===.getElapsed ( `Date` date ) : `Number`===
-
- Returns the number of milliseconds between this date and date.
-
- ====Parameters====
-
- * {`Date` date} Defaults to now
-
- ====Return Value====
-
- {`Number`} The diff in milliseconds
-
- ====Example====
-{{{
-new Date().getElapsed(Date.today()); //-17178828
-}}}
.
==http://www.datejs.com/images/function.gif getOrdinalNumber==