code: func (t MysqlTime) YearDay() int {
  	if t.month == 0 || t.day == 0 {
  		return 0
  	}
  	return calcDaynr(int(t.year), int(t.month), int(t.day)) -
  		calcDaynr(int(t.year), 1, 1) + 1
  }
docs: // YearDay returns day in year.