timeutil

package
v3.29.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DurationToMicroseconds added in v3.26.9

func DurationToMicroseconds(d time.Duration) int64

DurationToMicroseconds returns microseconds from given time.Duration

func MarshalDate

func MarshalDate(t time.Time) uint32

func MarshalDatetime

func MarshalDatetime(t time.Time) uint32

func MarshalTimestamp

func MarshalTimestamp(t time.Time) uint64

func MarshalTzDate

func MarshalTzDate(t time.Time) string

func MarshalTzDatetime

func MarshalTzDatetime(t time.Time) string

func MarshalTzTimestamp

func MarshalTzTimestamp(t time.Time) string

func MicrosecondsToDuration added in v3.26.9

func MicrosecondsToDuration(n int64) time.Duration

MicrosecondsToDuration returns time.Duration from given microseconds

func UnmarshalDate

func UnmarshalDate(n uint32) time.Time

UnmarshalDate up to 11761191-01-20 00:00:00 +0000 UTC.

func UnmarshalDatetime

func UnmarshalDatetime(n uint32) time.Time

Up to 2106-02-07 06:28:15 +0000 UTC.

func UnmarshalTimestamp

func UnmarshalTimestamp(n uint64) time.Time

Up to 586524-01-19 08:01:49.000551615 +0000 UTC.

func UnmarshalTzDate

func UnmarshalTzDate(s string) (time.Time, error)

func UnmarshalTzDatetime

func UnmarshalTzDatetime(s string) (time.Time, error)

func UnmarshalTzTimestamp

func UnmarshalTzTimestamp(s string) (time.Time, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL