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.
@@ -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
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "gis-common",
3
3
  "description": "gis-common",
4
4
  "main": "dist/resource.min.js",
5
- "version": "2.2.8",
5
+ "version": "2.2.9",
6
6
  "author": "Guo.Yan <luv02@vip.qq.com>",
7
7
  "license": "MIT",
8
8
  "private": false,