AddDate returns a new DateTime based on the current one + duration. It follows the same rules as [time.AddDate].
(years, months, days int)
| 53 | // |
| 54 | // It follows the same rules as [time.AddDate]. |
| 55 | func (d DateTime) AddDate(years, months, days int) DateTime { |
| 56 | d.t = d.t.AddDate(years, months, days) |
| 57 | return d |
| 58 | } |
| 59 | |
| 60 | // After reports whether the current DateTime instance is after u. |
| 61 | func (d DateTime) After(u DateTime) bool { |
no outgoing calls