Approve v2 addition of timestamp/timezone/location
This commit is contained in:
parent
8b41988ab6
commit
8d46d3794f
5
testdata/godoc-v2.x.txt
vendored
5
testdata/godoc-v2.x.txt
vendored
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user