Documentation ¶
Index ¶
- Variables
- func BeginningOfDay(t time.Time) time.Time
- func BeginningOfHour(t time.Time) time.Time
- func BeginningOfMinute(t time.Time) time.Time
- func BeginningOfMonth(t time.Time) time.Time
- func BeginningOfQuarter(t time.Time) time.Time
- func BeginningOfWeek(t time.Time) time.Time
- func BeginningOfYear(t time.Time) time.Time
- func Between(t time.Time, time1, time2 string) bool
- func EndOfDay(t time.Time) time.Time
- func EndOfHour(t time.Time) time.Time
- func EndOfMinute(t time.Time) time.Time
- func EndOfMonth(t time.Time) time.Time
- func EndOfQuarter(t time.Time) time.Time
- func EndOfSunday(t time.Time) time.Time
- func EndOfWeek(t time.Time) time.Time
- func EndOfYear(t time.Time) time.Time
- func Monday(t time.Time) time.Time
- func MustParse(t time.Time, strs ...string) time.Time
- func Parse(t time.Time, strs ...string) (time.Time, error)
- func Sunday(t time.Time) time.Time
- type Now
- func (now *Now) BeginningOfDay() time.Time
- func (now *Now) BeginningOfHour() time.Time
- func (now *Now) BeginningOfMinute() time.Time
- func (now *Now) BeginningOfMonth() time.Time
- func (now *Now) BeginningOfQuarter() time.Time
- func (now *Now) BeginningOfWeek() time.Time
- func (now *Now) BeginningOfYear() time.Time
- func (now *Now) Between(time1, time2 string) bool
- func (now *Now) EndOfDay() time.Time
- func (now *Now) EndOfHour() time.Time
- func (now *Now) EndOfMinute() time.Time
- func (now *Now) EndOfMonth() time.Time
- func (now *Now) EndOfQuarter() time.Time
- func (now *Now) EndOfSunday() time.Time
- func (now *Now) EndOfWeek() time.Time
- func (now *Now) EndOfYear() time.Time
- func (now *Now) Monday() time.Time
- func (now *Now) MustParse(strs ...string) (t time.Time)
- func (now *Now) Parse(strs ...string) (t time.Time, err error)
- func (now *Now) Sunday() time.Time
Constants ¶
This section is empty.
Variables ¶
View Source
var FirstDayMonday bool
View Source
var TimeFormats = []string{"1/2/2006", "1/2/2006 15:4:5", "2006-1-2 15:4:5", "2006-1-2 15:4", "2006-1-2", "1-2", "15:4:5", "15:4", "15", "15:4:5 Jan 2, 2006 MST", "2006-01-02 15:04:05.999999999 -0700 MST"}
Functions ¶
Types ¶
type Now ¶
func (*Now) BeginningOfDay ¶
func (*Now) BeginningOfHour ¶
func (*Now) BeginningOfMinute ¶
func (*Now) BeginningOfMonth ¶
func (*Now) BeginningOfQuarter ¶
func (*Now) BeginningOfWeek ¶
func (*Now) BeginningOfYear ¶
func (*Now) EndOfMinute ¶
func (*Now) EndOfMonth ¶
func (*Now) EndOfQuarter ¶
func (*Now) EndOfSunday ¶
Click to show internal directories.
Click to hide internal directories.