]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Simplifying code as requested by @ichernev 1072/head
authorMenelion Elensúle (Andre Polykanine) <andre@oire.org>
Fri, 13 Sep 2013 18:08:41 +0000 (21:08 +0300)
committerMenelion Elensúle (Andre Polykanine) <andre@oire.org>
Fri, 13 Sep 2013 18:08:41 +0000 (21:08 +0300)
lang/ru.js
lang/uk.js

index b7ebc7f631b75a2f590a8818617365e3a98b3dea..af7eab70ec69b254eda2a4c533f388ac255f1162 100644 (file)
         // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
 
         meridiem : function (hour, minute, isLower) {
-            if (hour >= 0 && hour < 4) {
+            if (hour < 4) {
                 return "ночи";
-            } else if (hour >= 4 && hour < 12) {
+            } else if (hour < 12) {
                 return "утра";
-            } else if (hour >= 12 && hour < 17) {
+            } else if (hour < 17) {
                 return "дня";
             } else {
                 return "вечера";
index 2a5bc8ca2e8b9e20ad4da8aa4364070ee0cdb989..36bfeb17eab7bb2d04b2d22798140842481f00cd 100644 (file)
         // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
 
         meridiem : function (hour, minute, isLower) {
-            if (hour >= 0 && hour < 4) {
+            if (hour < 4) {
                 return "ночі";
-            } else if (hour >= 4 && hour < 12) {
+            } else if (hour < 12) {
                 return "ранку";
-            } else if (hour >= 12 && hour < 17) {
+            } else if (hour < 17) {
                 return "дня";
             } else {
                 return "вечора";