Skip to content

Commit

Permalink
Approve v2 addition of timestamp/timezone/location
Browse files Browse the repository at this point in the history
  • Loading branch information
meatballhat committed Jul 10, 2022
1 parent 8b41988 commit 8d46d37
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions testdata/godoc-v2.x.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -1785,6 +1788,8 @@ type TimestampFlag struct {
EnvVars []string

Layout string

Timezone *time.Location
}
TimestampFlag is a flag with type *Timestamp

Expand Down

0 comments on commit 8d46d37

Please sign in to comment.