]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Trimming some bytes… 317/head
authorTim Wood <washwithcare@gmail.com>
Fri, 25 May 2012 01:06:08 +0000 (18:06 -0700)
committerTim Wood <washwithcare@gmail.com>
Fri, 25 May 2012 01:06:08 +0000 (18:06 -0700)
moment.js

index 3f076171f7ba0dee219ddae3d46b64c16a8b988c..f1b716c1c7dfa19cdde00bc04081d8db1aa879f6 100644 (file)
--- a/moment.js
+++ b/moment.js
             YYYY : 't.year()',
             a    : 'm?m(t.hours(),t.minutes(),!1):t.hours()>11?"pm":"am"',
             A    : 'm?m(t.hours(),t.minutes(),!0):t.hours()>11?"PM":"AM"',
-            H    : '(a=t.hours())',
-            h    : '(a=t.hours()%12||12)',
-            m    : '(a=t.minutes())',
-            s    : '(a=t.seconds())',
+            H    : 't.hours()',
+            h    : 't.hours()%12||12',
+            m    : 't.minutes()',
+            s    : 't.seconds()',
             S    : '~~(t.milliseconds()/100)',
             SS   : 'p(~~(t.milliseconds()/10),2)',
             SSS  : 'p(t.milliseconds(),3)',