feat: 增加获取空时区方法
This commit is contained in:
1 parent
09c64ba254
commit
ba21b39c41
1 file changed
+4
@@ -106,3 +106,7 @@ func (t *Time) getTimeFormat(defaultFormat string, layout ...string) string {
|
||||
}
|
||||
return defaultFormat
|
||||
}
|
||||
|
||||
func DefaultZeroTime() time.Time {
|
||||
return time.Date(1970, 1, 1, 0, 0, 0, 0, time.Local)
|
||||
}
|
||||