Skip to content

引入 ​

js
import { getTime } from "grantlibs";
或;
const { getTime } = require("grantlibs");
获取当前时分秒

使用 ​

ts

getTime(): string

参数 ​

无

返回 ​

string: 时分秒

示例 ​

js
const time = getTime();
// => 10:10:10