File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,11 @@ type TimeValuer interface {
19
19
20
20
// Time represents the PostgreSQL time type. The PostgreSQL time is a time of day without time zone.
21
21
//
22
- // Time is represented as the number of microseconds since midnight in the same way that PostgreSQL does. Other time
23
- // and date types in pgtype can use time.Time as the underlying representation. However, pgtype.Time type cannot due
24
- // to needing to handle 24:00:00. time.Time converts that to 00:00:00 on the following day.
22
+ // Time is represented as the number of microseconds since midnight in the same way that PostgreSQL does. Other time and
23
+ // date types in pgtype can use time.Time as the underlying representation. However, pgtype.Time type cannot due to
24
+ // needing to handle 24:00:00. time.Time converts that to 00:00:00 on the following day.
25
+ //
26
+ // The time with time zone type is not supported. Use of time with time zone is discouraged by the PostgreSQL documentation.
25
27
type Time struct {
26
28
Microseconds int64 // Number of microseconds since midnight
27
29
Valid bool
You can’t perform that action at this time.
0 commit comments