timex

package
v0.0.0-...-0941746 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Max

func Max(x, y time.Time, times ...time.Time) time.Time

Types

type Time

type Time int64

func Now

func Now() Time

func (Time) MarshalJSON

func (t Time) MarshalJSON() ([]byte, error)

func (Time) MarshalText

func (t Time) MarshalText() (ret []byte, err error)

func (*Time) Scan

func (t *Time) Scan(val any) (err error)

func (Time) StdTime

func (t Time) StdTime() time.Time

func (Time) String

func (t Time) String() string

func (Time) Unix

func (t Time) Unix() int64

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(data []byte) (err error)

func (*Time) UnmarshalText

func (t *Time) UnmarshalText(data []byte) (err error)

func (Time) Value

func (t Time) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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