Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: wjhuang2016 <[email protected]>
  • Loading branch information
wjhuang2016 committed Apr 12, 2021
1 parent 27a7e21 commit fca84b2
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions types/time.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit fca84b2

Please sign in to comment.