From e985d5464b45a116825603b0f72d07bbc7ae5ec5 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Sat, 19 Jan 2013 04:57:31 +0800 Subject: [PATCH] time: add note about Parse()'s choice of default year R=rsc CC=golang-dev https://golang.org/cl/7101046 --- src/pkg/time/format.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.48.1