This commit is contained in:
2026-02-14 13:38:23 +08:00
parent ffd174309e
commit 8885f665cd
3 changed files with 14 additions and 2 deletions

View File

@@ -40,6 +40,10 @@ func GetTradeDateBy(max int, asc bool) []string {
return days
}
func ReturnLastTradeDay() string {
return GetTradeDateBy(1, false)[0]
}
func ReturnLastDay() (string, string) {
now := time.Now()
end := now.Format("20060102")