Documentation ¶
Index ¶
- func DurationToMicroseconds(d time.Duration) int64
- func MarshalDate(t time.Time) uint32
- func MarshalDatetime(t time.Time) uint32
- func MarshalTimestamp(t time.Time) uint64
- func MarshalTzDate(t time.Time) string
- func MarshalTzDatetime(t time.Time) string
- func MarshalTzTimestamp(t time.Time) string
- func MicrosecondsToDuration(n int64) time.Duration
- func UnmarshalDate(n uint32) time.Time
- func UnmarshalDatetime(n uint32) time.Time
- func UnmarshalTimestamp(n uint64) time.Time
- func UnmarshalTzDate(s string) (time.Time, error)
- func UnmarshalTzDatetime(s string) (time.Time, error)
- func UnmarshalTzTimestamp(s string) (time.Time, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DurationToMicroseconds ¶ added in v3.26.9
DurationToMicroseconds returns microseconds from given time.Duration
func MarshalDate ¶
func MarshalDatetime ¶
func MarshalTimestamp ¶
func MarshalTzDate ¶
func MarshalTzDatetime ¶
func MarshalTzTimestamp ¶
func MicrosecondsToDuration ¶ added in v3.26.9
MicrosecondsToDuration returns time.Duration from given microseconds
func UnmarshalDate ¶
UnmarshalDate up to 11761191-01-20 00:00:00 +0000 UTC.
func UnmarshalDatetime ¶
Up to 2106-02-07 06:28:15 +0000 UTC.
func UnmarshalTimestamp ¶
Up to 586524-01-19 08:01:49.000551615 +0000 UTC.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.