2 Star 0 Fork 0

coder / pkg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
time.go 364 Bytes
一键复制 编辑 原始数据 按行查看 历史
码农不器 提交于 2024-01-17 10:09 . fix issues
package utils
import (
"time"
)
// NowTimeSecond
// 获取当前时间,格式为:2006-01-02 15:04:05
func NowTimeSecond() string {
return time.Now().Format("2006-01-02 15:04:05")
}
// NowTimeMillisecond
// 获取当前时间,格式为:2006-01-02 15:04:05.0000
func NowTimeMillisecond() string {
return time.Now().Format("2006-01-02 15:04:05.0000")
}
Go
1
https://gitee.com/coxio/pkg.git
git@gitee.com:coxio/pkg.git
coxio
pkg
pkg
v0.0.1

搜索帮助