]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Adding some docs on sod and eod
authorTim Wood <washwithcare@gmail.com>
Fri, 3 Feb 2012 18:18:30 +0000 (10:18 -0800)
committerTim Wood <washwithcare@gmail.com>
Fri, 3 Feb 2012 18:18:30 +0000 (10:18 -0800)
sitesrc/docs.jade

index 70b60d902ae481f6694f5f64da93d76c5218db23..18c917a83fda363baa5fc22607c0e0dde15ffbe1 100644 (file)
@@ -537,11 +537,16 @@ block content
       h3
         span Start of Day
       pre moment().sod(); // set the time to last midnight
+      p This is essentially the same as the following.
+      pre moment().hours(0).minutes(0).seconds(0).milliseconds(0);
+
 
       a(name="/manipulation/eod")
       h3
         span End of Day
       pre moment().eod(); // set the time to 11:59:59.999 pm tonight
+      p This is essentially the same as the following.
+      pre moment().hours(23).minutes(59).seconds(59).milliseconds(999);
 
 
       a(name="/display")