From: Tim Wood Date: Thu, 1 Dec 2011 19:18:33 +0000 (-0800) Subject: Rebuilding with moment.fn.zone unit tests X-Git-Tag: 1.2.0~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8f520a952e24edefc0824a80d8936e83e6f731f;p=thirdparty%2Fmoment.git Rebuilding with moment.fn.zone unit tests --- diff --git a/site/docs/index.html b/site/docs/index.html index 37026364d..6019f4bec 100644 --- a/site/docs/index.html +++ b/site/docs/index.html @@ -1,4 +1,4 @@ -Moment.js Documentation

Moment.js Documentation

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

Where to get it

Github

Production Version 1.1.22.8kb minified & gzippedDevelopment Version 1.1.220.1kb full source + comments

You can also clone the project with Git by running:

git clone git://github.com/timrwood/moment

npm

npm install moment

Where to use it

Moment was designed to work in both the browser and in NodeJS. All code will work in both environments. All unit tests are run in both environments.

In NodeJS

var moment = require('moment');
+Moment.js Documentation

Moment.js Documentation

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

Where to get it

Github

Production Version 1.1.22.8kb minified & gzippedDevelopment Version 1.1.220.1kb full source + comments

You can also clone the project with Git by running:

git clone git://github.com/timrwood/moment

npm

npm install moment

Where to use it

Moment was designed to work in both the browser and in NodeJS. All code will work in both environments. All unit tests are run in both environments.

In NodeJS

var moment = require('moment');
 moment().add('hours', 1).fromNow(); // "1 hour ago"
 

In the browser

<script src="moment.min.js"></script>
 moment().add('hours', 1).fromNow(); // "1 hour ago"
@@ -110,6 +110,12 @@ moment([2011, 2, 14]).isDST(); // true, March 14 2011 is DST
         LLL : "D MMMM YYYY HH:mm",
         LLLL : "dddd, D MMMM YYYY HH:mm"
     },
+    meridiem : {
+        AM : 'AM',
+        am : 'am',
+        PM : 'PM',
+        pm : 'pm'
+    },
     relativeTime : {
         future : "in %s",
         past : "il y a %s",
@@ -205,7 +211,7 @@ moment(1316116057189).fromNow(); // il y a une heure
         (b === 2) ? 'nd' : 
         (b === 3) ? 'rd' : 'th';
 };
-

For more information on ordinal numbers, see wikipedia