1
0
mirror of https://github.com/golang/go synced 2024-09-25 07:20:12 -06:00

time: use secondsPerMinute instead of 60

This commit is contained in:
Sandy 2018-07-30 11:37:27 +08:00 committed by GitHub
parent 12d27d8ea5
commit a8c2bb6caf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -933,7 +933,7 @@ func (t Time) AddDate(years int, months int, days int) Time {
const (
secondsPerMinute = 60
secondsPerHour = 60 * 60
secondsPerHour = 60 * secondsPerMinute
secondsPerDay = 24 * secondsPerHour
secondsPerWeek = 7 * secondsPerDay
daysPer400Years = 365*400 + 97