Documentation ¶
Index ¶
- Constants
- func BeginOfTheLastMonth(ts time.Time) time.Time
- func BeginOfTheNextMonth(ts time.Time) time.Time
- func BeginOfThisMonth(ts time.Time) time.Time
- func BeginOfThisWeek(ts time.Time) time.Time
- func BeginOfToday(ts time.Time) time.Time
- func EndOfTheLastMonth(ts time.Time) time.Time
- func EndOfTheNextMonth(ts time.Time) time.Time
- func EndOfThisMonth(ts time.Time) time.Time
- func EndOfThisWeek(ts time.Time) time.Time
- func EndOfToday(ts time.Time) time.Time
- type Date
- type DateTime
Constants ¶
View Source
const ( Day = time.Hour * 24 Week = Day * 7 )
Variables ¶
This section is empty.
Functions ¶
func BeginOfThisWeek ¶
BeginOfThisWeek returns 00:00:00 of this Monday.
func EndOfThisWeek ¶
EndOfThisWeek returns 23:59:59 of this Sunday.
Types ¶
type Date ¶ added in v0.1.2
func (Date) MarshalJSON ¶ added in v0.1.2
func (Date) MarshalURL ¶ added in v0.1.2
func (*Date) UnmarshalJSON ¶ added in v0.1.2
func (*Date) UnmarshalURL ¶ added in v0.1.2
type DateTime ¶
func (DateTime) MarshalJSON ¶
func (DateTime) MarshalURL ¶
func (*DateTime) UnmarshalJSON ¶
func (*DateTime) UnmarshalURL ¶
Click to show internal directories.
Click to hide internal directories.