This commit is contained in:
邹宗楠
2025-06-24 13:50:29 +08:00
parent 5b3ef2cd6d
commit 0599a21bce
42 changed files with 4192 additions and 26 deletions

View File

@@ -308,6 +308,9 @@ func Time2Str(t time.Time) string {
func Time2TimeStr(t time.Time) string {
return t.Format("15:04:05")
}
func Time2TimeStrByFormat(t time.Time, format string) string {
return t.Format(format)
}
func Time2Date(t time.Time) time.Time {
year, month, day := t.Date()