Skip to content

Commit

Permalink
apacheGH-35770: [Go][Documentation] Update TimestampType zero value a…
Browse files Browse the repository at this point in the history
…s seconds in comment (apache#37905)

### Rationale for this change

To clear the confusion around the zero value of `TimestampType`

### What changes are included in this PR?

Just a comment change `nanosecond -> second`

### Are these changes tested?

No need to test

### Are there any user-facing changes?

No

Closes: apache#35770
* Closes: apache#35770

Authored-by: ismail simsek <ismailsimsek09@gmail.com>
Signed-off-by: Matt Topol <zotthewizard@gmail.com>
  • Loading branch information
itsmylife authored and etseidl committed Sep 28, 2023
1 parent 8275451 commit 9f8638a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/arrow/datatype_fixedwidth.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ type TemporalWithUnit interface {
}

// TimestampType is encoded as a 64-bit signed integer since the UNIX epoch (2017-01-01T00:00:00Z).
// The zero-value is a nanosecond and time zone neutral. Time zone neutral can be
// The zero-value is a second and time zone neutral. Time zone neutral can be
// considered UTC without having "UTC" as a time zone.
type TimestampType struct {
Unit TimeUnit
Expand Down

0 comments on commit 9f8638a

Please sign in to comment.