🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

wft-utils

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wft-utils - npm Package Compare versions

Comparing version
1.46.0
to
1.47.0
+1
-1
package.json
{
"name": "wft-utils",
"version": "1.46.0",
"version": "1.47.0",
"description": "The commonly used tool functions in daily development",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -148,2 +148,13 @@ /**

/**
* 秒数转为分:秒
* @param {number} time 秒数
* @returns 分:秒
*/
export function second2MinSec(time) {
const minutes = Math.floor(time / 60);
const seconds = Math.floor(time % 60);
return `${minutes}:${seconds.toString().padStart(2, "0")}`;
}
/**
* 将Tue Mar 08 2022 16:43:57 GMT+0800 (中国标准时间)转为标准时间格式(yyyy-MM-dd HH:mm:ss)

@@ -150,0 +161,0 @@ * @param {*} value