Home | History | Annotate | Download | only in time

Lines Matching refs:Month

51 	// determine the minute, hour, month, day, and year
83 // A Month specifies a month of the year (January = 1, ...).
84 type Month int
87 January Month = 1 + iota
116 // String returns the English name of the month ("January", "February", ...).
117 func (m Month) String() string {
123 return "%!Month(" + string(buf[n:]) + ")"
171 // The presentation computations - year, month, minute, and so on - all
257 // It is called when computing a presentation property like Month or Hour.
300 // Date returns the year, month, and day in which t occurs.
301 func (t Time) Date() (year int, month Month, day int) {
302 year, month, day, _ = t.date(true)
312 // Month returns the month of the year specified by t.
313 func (t Time) Month() Month {
314 _, month, _, _ := t.date(true)
315 return month
318 // Day returns the day of the month specified by t.
341 year, month, day, yday := t.date(true)
385 if month == December && day >= 29 && wday < Thu {
669 // so, for example, adding one month to October 31 yields
672 year, month, day := t.Date()
674 return Date(year+years, month+Month(months), day+days, hour, min, sec, int(t.nsec), t.Location())
688 // the month and day in which t occurs.
689 func (t Time) date(full bool) (year int, month Month, day int, yday int) {
694 func absDate(abs uint64, full bool) (year int, month Month, day int, yday int) {
744 month = February
750 // Estimate month on assumption that every month has 31 days.
751 // The estimate may be too low by at most one month, so adjust.
752 month = Month(day / 31)
753 end := int(daysBefore[month+1])
756 month++
759 begin = int(daysBefore[month])
762 month++ // because January is 1
768 // before month m begins. There is an entry for m=12, counting
786 func daysIn(m Month, year int) int {
1039 // The month, day, hour, min, sec, and nsec values may be outside
1051 func Date(year int, month Month, day, hour, min, sec, nsec int, loc *Location) Time {
1056 // Normalize month, overflowing into year.
1057 m := int(month) - 1
1059 month = Month(m) + 1
1090 // Add in days before this month.
1091 d += uint64(daysBefore[month-1])
1092 if isLeap(year) && month >= March {