Beispiel #1
0
// AddPeriod returns the date corresponding to adding the given period. If the
// period's fields are be negative, this results in an earlier date. Any time
// component is ignored.
//
// See the description for AddDate.
func (d Date) AddPeriod(period period.Period) Date {
	return d.AddDate(period.Years(), period.Months(), period.Days())
}