From fca84b22efda7b70f6c044e4ab9572f15796a2c8 Mon Sep 17 00:00:00 2001 From: wjhuang2016 Date: Mon, 12 Apr 2021 18:45:59 +0800 Subject: [PATCH] fix Signed-off-by: wjhuang2016 --- types/time.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/types/time.go b/types/time.go index d2c2585e0486f..cae6123dd1f24 100644 --- a/types/time.go +++ b/types/time.go @@ -1260,18 +1260,6 @@ func AdjustYear(y int64, adjustZero bool) (int64, error) { return y, nil } -func adjustYearForFloat(y float64, shouldAdjust bool) float64 { - if y == 0 && !shouldAdjust { - return y - } - if y >= 0 && y <= 69 { - y = 2000 + y - } else if y >= 70 && y <= 99 { - y = 1900 + y - } - return y -} - // NewDuration construct duration with time. func NewDuration(hour, minute, second, microsecond int, fsp int8) Duration { return Duration{