gis-common 2.2.8 → 2.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/resource.min.js +11 -0
- package/package.json +1 -1
package/dist/resource.min.js
CHANGED
|
@@ -1089,6 +1089,17 @@ Date.prototype.addDate = function (interval, number) {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
return intervalDes;
|
|
1091
1091
|
},
|
|
1092
|
+
formatterCounter: function formatterCounter(times) {
|
|
1093
|
+
var checked = function checked(j) {
|
|
1094
|
+
return (j > 10 ? '' : '0') + (j || 0);
|
|
1095
|
+
};
|
|
1096
|
+
var houres = checked(Math.floor(times / 3600));
|
|
1097
|
+
var level1 = times % 3600;
|
|
1098
|
+
var minutes = checked(Math.floor(level1 / 60));
|
|
1099
|
+
var leave2 = level1 % 60;
|
|
1100
|
+
var seconds = checked(Math.round(leave2));
|
|
1101
|
+
return houres + ':' + minutes + ':' + seconds;
|
|
1102
|
+
},
|
|
1092
1103
|
sleep: function sleep(d) {
|
|
1093
1104
|
for (var t = Date.now(); Date.now() - t <= d;) {}
|
|
1094
1105
|
}
|