2 Star 2 Fork 7

王布衣 / gox

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
datetime_layout.go 729 Bytes
一键复制 编辑 原始数据 按行查看 历史
王布衣 提交于 2024-01-08 07:38 . 调整部分代码
package api
import "time"
const (
// DateFormat 日期格式 yyyy-MM-dd
DateFormat = "2006-01-02"
// DateFormat2 日期格式 yyyyMMdd
DateFormat2 = "20060102"
// DateFormat3 日期格式 yyMMdd
DateFormat3 = "060102"
// TimeFormat 时间格式 yyyy-MM-dd HH:mm:ss
TimeFormat = "2006-01-02 15:04:05"
// TimeFormat2 时间格式 yyyyMMddHHmmss
TimeFormat2 = "20060102150405"
// Timestamp 时间戳 - 毫秒 时间格式 yyyy-MM-dd HH:mm:ss.SSS
Timestamp = "2006-01-02 15:04:05.000"
// TimeOnly 时分秒
TimeOnly = time.TimeOnly
// TimeAndMillisecond 时分秒毫
TimeAndMillisecond = "15:04:05.000"
PathDate = "20060102" // 路径中的日期格式
TextDate = "2006-01-02" // 数据中的日期格式
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/quant1x/gox.git
git@gitee.com:quant1x/gox.git
quant1x
gox
gox
v1.21.2

搜索帮助