You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Working as intended. There is no February 31, so what happens here is reasonable. The behavior is even documented in the comment for AddDate - using almost exactly this example!
Hello,
This might not e related to Go itself, but I noticed that when incrementing a date month by month go sometimes leaps a month.
Output:
2013-01-31 23:59:59 +0000 UTC
2013-03-03 23:59:59 +0000 UTC
Go version: go1.4.2 linux/amd64
System: Ubuntu 14.04.1
https://play.golang.org/p/5msN0bykp8
The text was updated successfully, but these errors were encountered: