ok
This commit is contained in:
13
day/ymd.go
Normal file
13
day/ymd.go
Normal file
@@ -0,0 +1,13 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user