// ToMonthInterval attempts to cast the Boolean to a MonthInterval.
// The result is not checked for an overflow.
// Use the ToMonthIntervalChecked version of this method if you need to check for
// an overflow.
ToMonthInterval attempts to cast the Boolean to a MonthInterval.
The result is not checked for an overflow.
Use the ToMonthIntervalChecked version of this method if you need to check for
an overflow.
// ToMonthInterval attempts to cast the Boolean to a MonthInterval . // The result is not checked for an overflow . // Use the ToMonthIntervalChecked version of this method if you need to check for // an overflow .
func (t Boolean) ToMonthInterval() MonthInterval {
	if t {
		return MonthInterval(1)
	}
	return MonthInterval(0)
}
func ( t Boolean ) ToMonthInterval ( ) MonthInterval { if t { return MonthInterval ( 1 ) } return MonthInterval ( 0 ) }
ToMonthInterval attempts to cast the Boolean to a MonthInterval.
ToMonthInterval attempts to cast the Boolean to a MonthInterval .