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:
parent
12d27d8ea5
commit
a8c2bb6caf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user