From: Tim Wood Date: Thu, 1 Dec 2011 18:55:10 +0000 (-0800) Subject: Adding isDST documentation #82 X-Git-Tag: 1.2.0~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cdaa41b17a6d8c99467226f722f281d493a01ae;p=thirdparty%2Fmoment.git Adding isDST documentation #82 --- diff --git a/sitesrc/docs.jade b/sitesrc/docs.jade index 7f7eac5a8..a6e5a686d 100644 --- a/sitesrc/docs.jade +++ b/sitesrc/docs.jade @@ -97,6 +97,8 @@ block content a(href="#/display/leapyear") Leap Year li a(href="#/display/zone") Timezone Offset + li + a(href="#/display/dst") Daylight Savings Time h2 a(href="#/i18n") span I18N @@ -837,6 +839,16 @@ block content pre moment().zone(); // get the timezone offset in minutes (60, 120, 240, etc.) + a(name="/display/dst") + h3 + span Daylight Savings Time + p + code moment.fn.isLeapYear + | checks if the current moment is in daylight savings time or not. + pre moment([2011, 2, 12]).isDST(); // false, March 12 2011 is not DST\n + | moment([2011, 2, 14]).isDST(); // true, March 14 2011 is DST + + a(name="/i18n") h2 span I18N