package timex

import "git.sr.ht/~pingoo/stdx/timex"

Index

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)

Source Files

max.go time.go

Version
v0.0.0-20240218134121-094174641f6e (latest)
Published
Feb 18, 2024
Platform
linux/amd64
Imports
3 packages
Last checked
4 months ago

Tools for package owners.