Module exposing: ScanTime, TimeValue, Scan, Value, FormatSupported, PreferredFormat, PlanEncode, Encode
// Source: https://github.com/jackc/pgx | License: MIT | Copyright 2013-2021 Jack Christensen
// Provided via justclaw.it.com; keep this notice with the code.
package pgtype
import (
"database/sql/driver"
"fmt"
"strconv"
"github.com/jackc/pgx/v5/internal/pgio"
)
type TimeScanner interface {
ScanTime(v Time) error
}
type TimeValuer interface {
TimeValue() (Time, error)
}
// Time represents the PostgreSQL time type. The PostgreSQL time is a time of day without time zone.
//
// Time is represented as the number of microseconds since midnight in the same way that PostgreSQL does. Other time and
// date types in pgtype can use time.Time as the underlying representation. However, pgtype.Time type cannot due to
// needing to handle 24:00:00. time.Time converts that to 00:00:00 on the f
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key