From: Tim Wood Date: Mon, 17 Oct 2011 20:12:47 +0000 (-0700) Subject: Adding to the docs X-Git-Tag: 1.0.1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39f6c4dab9abded18b71042201a7183446ec591b;p=thirdparty%2Fmoment.git Adding to the docs --- diff --git a/docs/index.html b/docs/index.html index ef59511d8..163ff729a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -73,6 +73,9 @@
+

Moment.js

+

A lightweight javascript date library for parsing, manipulating, and formatting dates.

+

It doesn't modify the native Date.prototype so it's safe to drop into any project.

Where to get it

@@ -699,9 +702,7 @@ a.diff(b) // 86400000

To get the native Date object that Moment.js wraps, use moment.fn.native.

-var a = moment([2007, 0, 29]);
-var b = moment([2007, 0, 28]);
-a.diff(b) // 86400000
+moment([2007, 0, 29]).native(); // returns native Date object