xctc-utils 1.0.8 → 1.0.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.
@@ -1,4 +1,4 @@
1
- export declare function etTime(): number;
1
+ export declare function getTime(): number;
2
2
  /**
3
3
  *
4
4
  * @param num 传入的时间戳(秒):如 1675667655
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formatStrTime = exports.formatTimeStamp = exports.etTime = void 0;
3
+ exports.formatStrTime = exports.formatTimeStamp = exports.getTime = void 0;
4
4
  //获取当前时间戳
5
- function etTime() {
5
+ function getTime() {
6
6
  var now = new Date().getTime() / 1000;
7
7
  now = parseInt(now);
8
8
  return now;
9
9
  }
10
- exports.etTime = etTime;
10
+ exports.getTime = getTime;
11
11
  // 1675667655
12
12
  // 时间戳转时间字符串
13
13
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xctc-utils",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "localStorage存储\r ```\r sessionStorage存储\r ```\r crypto-js加密、解密\r ```\r 微信授权登录、微信分享\r ```\r 设备环境获取\r ```\r 是否是微信浏览器\r ```\r 时间戳转时间,字符串转时间戳",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",