Skip to content

Commit 8d46d37

Browse files
committed
Approve v2 addition of timestamp/timezone/location
1 parent 8b41988 commit 8d46d37

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

testdata/godoc-v2.x.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,6 +1757,9 @@ func (t *Timestamp) Set(value string) error
17571757
func (t *Timestamp) SetLayout(layout string)
17581758
Set the timestamp string layout for future parsing
17591759

1760+
func (t *Timestamp) SetLocation(loc *time.Location)
1761+
Set perceived timezone of the to-be parsed time string
1762+
17601763
func (t *Timestamp) SetTimestamp(value time.Time)
17611764
Set the timestamp value directly
17621765

@@ -1785,6 +1788,8 @@ type TimestampFlag struct {
17851788
EnvVars []string
17861789

17871790
Layout string
1791+
1792+
Timezone *time.Location
17881793
}
17891794
TimestampFlag is a flag with type *Timestamp
17901795

0 commit comments

Comments
 (0)