Home | History | Annotate | Download | only in time

Lines Matching defs:Add

40 // If Time t has a monotonic clock reading, t.Add adds the same duration to
88 // The Add method adds a Time and a Duration, producing a Time.
345 // The Add and Sub computations are oblivious to the choice of epoch.
357 // have to add the zone offset, so adding the translation to the
843 // Add returns the time t+d.
844 func (t Time) Add(d Duration) Time {
871 // To compute t-d for a duration d, use t.Add(-d).
888 case u.Add(d).Equal(t):
1331 // Add in days from 400-year cycles.
1336 // Add in 100-year cycles.
1341 // Add in 4-year cycles.
1346 // Add in non-leap years.
1350 // Add in days before this month.
1356 // Add in days before today.
1359 // Add in time elapsed today.
1398 return t.Add(-r)
1416 return t.Add(-r)
1418 return t.Add(d - r)