mirror of
https://github.com/golang/go
synced 2024-09-25 07:20:12 -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:
parent
6417e91962
commit
15c362a260
@ -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