code: func TimeFromExcelTime(excelTime float64, date1904 bool) time.Time {
  	var date time.Time
  	var wholeDaysPart = int(excelTime)
  	// Excel uses Julian dates prior to March 1st 1900, and
  	// Gregorian thereafter.
  	if wholeDaysPart <= 61 {
  		const OFFSET1900 = 15018.0
  		const OFFSET1904 = 16480.0
  		var date time.Time
  		if date1904 {
  			date = julianDateToGregorianTime(MJD_0, excelTime+OFFSET1904)
  		} else {
  			date = julianDateToGregorianTime(MJD_0, excelTime+OFFSET1900)
  		}
  		return date
  	}
  	var floatPart = excelTime - float64(wholeDaysPart)
  	if date1904 {
  		date = excel1904Epoc
  	} else {
  		date = excel1900Epoc
  	}
  	durationPart := time.Duration(nanosInADay * floatPart)
  	return date.AddDate(0,0, wholeDaysPart).Add(durationPart)
  }
docs: // Convert an excelTime representation (stored as a floating point number) to a time.Time.