From 8d46d3794ffb66500fdba0150814f60825909779 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Sun, 10 Jul 2022 12:16:59 -0400 Subject: [PATCH] Approve v2 addition of timestamp/timezone/location --- testdata/godoc-v2.x.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testdata/godoc-v2.x.txt b/testdata/godoc-v2.x.txt index c7b460b307..1ba48cc659 100644 --- a/testdata/godoc-v2.x.txt +++ b/testdata/godoc-v2.x.txt @@ -1757,6 +1757,9 @@ func (t *Timestamp) Set(value string) error func (t *Timestamp) SetLayout(layout string) Set the timestamp string layout for future parsing +func (t *Timestamp) SetLocation(loc *time.Location) + Set perceived timezone of the to-be parsed time string + func (t *Timestamp) SetTimestamp(value time.Time) Set the timestamp value directly @@ -1785,6 +1788,8 @@ type TimestampFlag struct { EnvVars []string Layout string + + Timezone *time.Location } TimestampFlag is a flag with type *Timestamp