timeutil

package
v3.9.4-alpha Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalDate

func MarshalDate(t time.Time) uint32

func MarshalDatetime

func MarshalDatetime(t time.Time) uint32

func MarshalInterval

func MarshalInterval(d time.Duration) int64

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 UnmarshalDate

func UnmarshalDate(n uint32) time.Time

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 UnmarshalInterval

func UnmarshalInterval(n int64) time.Duration

UnmarshalInterval up to ±292 years.

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