1
0
mirror of https://github.com/golang/go synced 2024-09-25 09:10:14 -06:00

time: use secondsPerMinute instead of 60

It's maybe better.

Change-Id: I7929e93a95c96676915bc24f2f7cce4e73b08c59
GitHub-Last-Rev: a8c2bb6caf
GitHub-Pull-Request: golang/go#26685
Reviewed-on: https://go-review.googlesource.com/126623
Reviewed-by: Ralph Corderoy <ralph@inputplus.co.uk>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Sandy 2018-07-30 03:56:46 +00:00 committed by Brad Fitzpatrick
parent 6417e91962
commit 15c362a260

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