jsontime

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Unix

type Unix struct {
	time.Time
}

func U

func U(time time.Time) Unix

func UInt

func UInt(ts int64) Unix

func UnixNow

func UnixNow() Unix

func (Unix) MarshalJSON

func (u Unix) MarshalJSON() ([]byte, error)

func (*Unix) UnmarshalJSON

func (u *Unix) UnmarshalJSON(data []byte) error

type UnixMilli

type UnixMilli struct {
	time.Time
}

func UM

func UM(time time.Time) UnixMilli

func UMInt

func UMInt(ts int64) UnixMilli

func UnixMilliNow

func UnixMilliNow() UnixMilli

func (UnixMilli) MarshalJSON

func (um UnixMilli) MarshalJSON() ([]byte, error)

func (*UnixMilli) UnmarshalJSON

func (um *UnixMilli) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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