Documentation ¶
Index ¶
- Constants
- Variables
- func BeginningOfDay(t time.Time) time.Time
- func CurrBeginningOfDay() time.Time
- func CurrEndOfDay() time.Time
- func EndOfDay(t time.Time) time.Time
- func GetDaysInMonth(yearInt, month int) (days int)
- func TruncateMillSec(in time.Time) time.Time
- func TruncateMinute(in time.Time) time.Time
- func TruncateSec(in time.Time) time.Time
- func UnixNano(nanoSec int64) time.Time
Constants ¶
View Source
const (
FormatYYYYMMDDHHMISS = "2006-01-02 15:04:05"
)
Variables ¶
View Source
var ( CstZone = time.FixedZone("CST", 8*3600) CstSh, _ = time.LoadLocation("Asia/Shanghai") //上海 CstLocal, _ = time.LoadLocation("Local") CstUTC, _ = time.LoadLocation("UTC") TimeTemplate1 = "2006-01-02 15:04:05" TimeTemplate2 = "2006/01/02 15:04:05" TimeTemplate3 = "2006-01-02" TimeTemplate5 = "20060102 150405" TimeTemplate6 = "20060102" )
Functions ¶
func CurrBeginningOfDay ¶ added in v1.10.1
func CurrEndOfDay ¶ added in v1.10.1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.