Documentation
¶
Index ¶
- Constants
- Variables
- func BeginningOfDay() time.Time
- func BeginningOfHalf() time.Time
- func BeginningOfHour() time.Time
- func BeginningOfMinute() time.Time
- func BeginningOfMonth() time.Time
- func BeginningOfQuarter() time.Time
- func BeginningOfWeek() time.Time
- func BeginningOfWeekday(weekStartDay time.Weekday) time.Time
- func BeginningOfYear() time.Time
- func EndOfDay() time.Time
- func EndOfHalf() time.Time
- func EndOfHour() time.Time
- func EndOfMinute() time.Time
- func EndOfMonth() time.Time
- func EndOfQuarter() time.Time
- func EndOfWeek() time.Time
- func EndOfWeekday(weekStartDay time.Weekday) time.Time
- func EndOfYear() time.Time
- func Monday() time.Time
- func MustParse(str string) time.Time
- func MustParseIn(str string, loc *time.Location) time.Time
- func Parse(str string) (time.Time, error)
- func ParseIn(str string, loc *time.Location) (time.Time, error)
- func Quarter() uint
- func Sunday() time.Time
- func Today() time.Time
- func Tomorrow() time.Time
- func Yesterday() time.Time
- type Time
- func (now *Time) BeginningOfDay() time.Time
- func (now *Time) BeginningOfHalf() time.Time
- func (now *Time) BeginningOfHour() time.Time
- func (now *Time) BeginningOfMinute() time.Time
- func (now *Time) BeginningOfMonth() time.Time
- func (now *Time) BeginningOfQuarter() time.Time
- func (now *Time) BeginningOfWeek() time.Time
- func (now *Time) BeginningOfWeekday(weekStartDay time.Weekday) time.Time
- func (now *Time) BeginningOfYear() time.Time
- func (now *Time) EndOfDay() time.Time
- func (now *Time) EndOfHalf() time.Time
- func (now *Time) EndOfHour() time.Time
- func (now *Time) EndOfMinute() time.Time
- func (now *Time) EndOfMonth() time.Time
- func (now *Time) EndOfQuarter() time.Time
- func (now *Time) EndOfWeek() time.Time
- func (now *Time) EndOfWeekday(weekStartDay time.Weekday) time.Time
- func (now *Time) EndOfYear() time.Time
- func (now *Time) Monday() time.Time
- func (now *Time) Quarter() uint
- func (now *Time) Sunday() time.Time
- func (now *Time) Today() time.Time
- func (now *Time) Tomorrow() time.Time
- func (now *Time) Yesterday() time.Time
Constants ¶
View Source
const DateTime = "2006-01-02 15:04:05"
View Source
const WeekStartDay = time.Monday
Variables ¶
View Source
var Now = time.Now
Functions ¶
func BeginningOfDay ¶
func BeginningOfHalf ¶
func BeginningOfHour ¶
func BeginningOfMinute ¶
func BeginningOfMonth ¶
func BeginningOfQuarter ¶
func BeginningOfWeek ¶
func BeginningOfYear ¶
func EndOfMinute ¶
func EndOfMonth ¶
func EndOfQuarter ¶
Types ¶
type Time ¶
func (*Time) BeginningOfDay ¶
func (*Time) BeginningOfHalf ¶
func (*Time) BeginningOfHour ¶
func (*Time) BeginningOfMinute ¶
func (*Time) BeginningOfMonth ¶
func (*Time) BeginningOfQuarter ¶
func (*Time) BeginningOfWeek ¶
func (*Time) BeginningOfWeekday ¶
func (*Time) BeginningOfYear ¶
func (*Time) EndOfMinute ¶
func (*Time) EndOfMonth ¶
func (*Time) EndOfQuarter ¶
Click to show internal directories.
Click to hide internal directories.