Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duration ¶
type Duration int64
Duration represents the elapsed time between two instants as an int64 microsecond count.
type LocalDate ¶
type LocalDate struct {
// contains filtered or unexported fields
}
LocalDate is a date without a time zone. https://www.edgedb.com/docs/datamodel/scalars/datetime/
func NewLocalDate ¶
NewLocalDate returns a new LocalDate
type LocalDateTime ¶
type LocalDateTime struct {
// contains filtered or unexported fields
}
LocalDateTime is a date and time without timezone. https://www.edgedb.com/docs/datamodel/scalars/datetime/
func NewLocalDateTime ¶
func NewLocalDateTime( year int, month time.Month, day, hour, minute, second, microsecond int, ) LocalDateTime
NewLocalDateTime returns a new LocalDateTime
func (LocalDateTime) String ¶
func (dt LocalDateTime) String() string
type LocalTime ¶
type LocalTime struct {
// contains filtered or unexported fields
}
LocalTime is a time without a time zone. https://www.edgedb.com/docs/datamodel/scalars/datetime/
func NewLocalTime ¶
NewLocalTime returns a new LocalTime
type RelativeDuration ¶ added in v0.7.0
type RelativeDuration struct {
// contains filtered or unexported fields
}
RelativeDuration represents the elapsed time between two instants in a fuzzy human way.
func NewRelativeDuration ¶ added in v0.7.0
func NewRelativeDuration( months, days int32, microseconds int64, ) RelativeDuration
NewRelativeDuration returns a new RelativeDuration
func (RelativeDuration) String ¶ added in v0.7.0
func (rd RelativeDuration) String() string
type UUID ¶
type UUID [16]byte
UUID a universally unique identifier https://www.edgedb.com/docs/datamodel/scalars/uuid#type::std::uuid
func (UUID) MarshalText ¶
MarshalText returns the id as a byte string.
func (*UUID) UnmarshalText ¶
UnmarshalText unmarshals the id from a string.