Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Utc = UtcTime{}
Utc is a UtcTime instance.
Functions ¶
func TimeToTimestamptz ¶
func TimeToTimestamptz(t time.Time) pgtype.Timestamptz
TimeToTimestamptz converts time.Time to pgtype.Timestamptz.
func TimestamptzToTime ¶
func TimestamptzToTime(t pgtype.Timestamptz) time.Time
TimestamptzToTime converts pgtype.Timestamptz to time.Time.
Types ¶
type UtcTime ¶
UtcTime is a type for time in UTC.
func (UtcTime) ISOStringToTime ¶
ISOStringToTime converts ISO8601 string to time.Time.
Click to show internal directories.
Click to hide internal directories.