Documentation
¶
Overview ¶
Package sqltime provides support for Postgres time data type.
Index ¶
- Variables
- type AtoiError
- type Part
- type RangeError
- type Time
- func (t Time) Add(d Time) Time
- func (t Time) Hour() int
- func (s Time) MarshalJSON() ([]byte, error)
- func (t Time) Minute() int
- func (t *Time) Parse(s string) error
- func (s *Time) Scan(src any) error
- func (t Time) Second() int
- func (t Time) String() string
- func (t Time) Sub(d Time) Time
- func (s *Time) UnmarshalJSON(data []byte) error
- func (s Time) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTooManyParts = errors.New("too many parts")
Functions ¶
This section is empty.
Types ¶
type RangeError ¶ added in v0.2.0
func (*RangeError) Error ¶ added in v0.2.0
func (e *RangeError) Error() string
type Time ¶
type Time struct {
// contains filtered or unexported fields
}
Time is a one-to-one representation of SQL time data type.
func Parse ¶ added in v0.2.0
Parse parses a formatted string, in time.TimeOnly (15:04:05) format, and returns the time value it represents.
func (Time) MarshalJSON ¶
func (*Time) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.