From: Shenghou Ma Date: Fri, 18 Jan 2013 20:57:31 +0000 (+0800) Subject: time: add note about Parse()'s choice of default year X-Git-Tag: go1.1rc2~1360 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e985d5464b45a116825603b0f72d07bbc7ae5ec5;p=gostls13.git time: add note about Parse()'s choice of default year R=rsc CC=golang-dev https://golang.org/cl/7101046 --- diff --git a/src/pkg/time/format.go b/src/pkg/time/format.go index 417e8f8d7a..35118a9ff7 100644 --- a/src/pkg/time/format.go +++ b/src/pkg/time/format.go @@ -637,7 +637,8 @@ func skip(value, prefix string) (string, error) { // // Elements omitted from the value are assumed to be zero or, when // zero is impossible, one, so parsing "3:04pm" returns the time -// corresponding to Jan 1, year 0, 15:04:00 UTC. +// corresponding to Jan 1, year 0, 15:04:00 UTC (note that because the year is +// 0, this time is before the zero Time). // Years must be in the range 0000..9999. The day of the week is checked // for syntax but it is otherwise ignored. func Parse(layout, value string) (Time, error) {