code: func TimeFromDays(num int64) Time {
  	if num < 0 {
  		return Time{
  			Time: FromDate(0, 0, 0, 0, 0, 0, 0),
  			Type: mysql.TypeDate,
  			Fsp:  0,
  		}
  	}
  	year, month, day := getDateFromDaynr(uint(num))
  
  	return Time{
  		Time: FromDate(int(year), int(month), int(day), 0, 0, 0, 0),
  		Type: mysql.TypeDate,
  		Fsp:  0,
  	}
  }
docs: // TimeFromDays Converts a day number to a date.