code: func ParseTimeFromNum(sc *stmtctx.StatementContext, num int64, tp byte, fsp int) (Time, error) {
  	fsp, err := CheckFsp(fsp)
  	if err != nil {
  		return Time{Time: ZeroTime, Type: tp}, errors.Trace(err)
  	}
  
  	t, err := parseDateTimeFromNum(sc, num)
  	if err != nil {
  		return Time{Time: ZeroTime, Type: tp}, errors.Trace(err)
  	}
  
  	t.Type = tp
  	t.Fsp = fsp
  	if err := t.check(sc); err != nil {
  		return Time{Time: ZeroTime, Type: tp}, errors.Trace(err)
  	}
  	return t, nil
  }
docs: // ParseTimeFromNum parses a formatted int64,
  // returns the value which type is tp.