Files
qsdk/day/ymd.go
2026-05-01 11:03:19 +08:00

14 lines
257 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package day
import (
"time"
"git.apinb.com/bsm-sdk/core/utils"
)
// TodayYmd 返回本地日期的 YYYYMMDD 整数gostock internal/models/query.GetYmd
func TodayYmd() int {
ymd := time.Now().Format("20060102")
return utils.String2Int(ymd)
}