const ( Min = -1 << 31 Max = 1<<31 - 1 )
Date represents a date with a resolution of one day.
First returns the earliest provided date
Last returns the latest provided date
NewDate returns a Date in the specified location If the location is not specified UTC is assumed
ParseDate parses a formatted string and returns the value it represents. The layout defines the format by showing how the reference date
Mon Jan 2 2006
woud be represented. See the documentation of time.ParseInLocation for more in depth documentation.
Today returns the current date in your local timezone (see time.Now() for details).
Add returns a modified date. It follows the same rules as t.AddDate().
Day returns the day of the month [1:31]
Format returns a textual representation of the time value formatted according to layout, which defines the format by showing how the reference time, defined to be
Mon Jan 2 15:04:05 -0700 MST 2006
would be displayed if it were the value; it serves as an example of the desired output. See time.Time.Format for details.
ISOWeek returns the ISO 8601 year and week number in which the date occurs. Week ranges from 1 to 53. Jan 01 to Jan 03 of year n might belong to week 52 or 53 of year n-1, and Dec 29 to Dec 31 might belong to week 1 of year n+1.
Month returns the month of the year [1,12]
PreviousWeekday returns the clostest previous date which is at the specified weekday.
String returns a human readable string
Time returns the time at the date at the specified time of day
Weekday returns the weekday of the date
Year returns the year