Documentation
¶
Index ¶
- type Duration
- type Time
- func (t Time) BeginningOfDay() time.Time
- func (t Time) BeginningOfMonth() time.Time
- func (t Time) BeginningOfNextDay() time.Time
- func (t Time) BeginningOfNextMonth() time.Time
- func (t Time) EndOfDay() time.Time
- func (t Time) EndOfMonth() time.Time
- func (t Time) TruncateTime(d time.Duration) time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Time ¶
func (Time) BeginningOfDay ¶
BeginningOfDay returns the beginning of day like 2021-01-13 00:00:00 +0800 CST.
func (Time) BeginningOfMonth ¶
BeginningOfMonth returns beginning of month like 2021-01-01 00:00:00 +0800 CST.
func (Time) BeginningOfNextDay ¶
BeginningOfNextDay returns the beginning of day like 2021-01-13 00:00:00 +0800 CST.
func (Time) BeginningOfNextMonth ¶
BeginningOfNextMonth returns beginning of next month like 2021-01-01 00:00:00 +0800 CST.
func (Time) EndOfMonth ¶
EndOfMonth returns end of month like 2021-01-31 23:59:59 +0800 CST.
Click to show internal directories.
Click to hide internal directories.