jsontime

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MPL-2.0 Imports: 7 Imported by: 36

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotInteger = errors.New("value is not an integer")

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) Scan added in v0.3.0

func (u *Unix) Scan(src any) error

func (*Unix) UnmarshalJSON

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

func (Unix) Value added in v0.3.0

func (u Unix) Value() (driver.Value, error)

type UnixMicro added in v0.2.0

type UnixMicro struct {
	time.Time
}

func UMicro added in v0.2.0

func UMicro(time time.Time) UnixMicro

func UMicroInto added in v0.2.0

func UMicroInto(ts int64) UnixMicro

func UnixMicroNow added in v0.2.0

func UnixMicroNow() UnixMicro

func (UnixMicro) MarshalJSON added in v0.2.0

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

func (*UnixMicro) Scan added in v0.3.0

func (um *UnixMicro) Scan(src any) error

func (*UnixMicro) UnmarshalJSON added in v0.2.0

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

func (UnixMicro) Value added in v0.3.0

func (um UnixMicro) Value() (driver.Value, error)

type UnixMicroString added in v0.2.0

type UnixMicroString struct {
	time.Time
}

func (UnixMicroString) MarshalJSON added in v0.2.0

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

func (*UnixMicroString) UnmarshalJSON added in v0.2.0

func (um *UnixMicroString) 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) Scan added in v0.3.0

func (um *UnixMilli) Scan(src any) error

func (*UnixMilli) UnmarshalJSON

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

func (UnixMilli) Value added in v0.3.0

func (um UnixMilli) Value() (driver.Value, error)

type UnixMilliString added in v0.2.0

type UnixMilliString struct {
	time.Time
}

func (UnixMilliString) MarshalJSON added in v0.2.0

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

func (*UnixMilliString) UnmarshalJSON added in v0.2.0

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

type UnixNano added in v0.2.0

type UnixNano struct {
	time.Time
}

func UN added in v0.2.0

func UN(time time.Time) UnixNano

func UNInt added in v0.2.0

func UNInt(ts int64) UnixNano

func UnixNanoNow added in v0.2.0

func UnixNanoNow() UnixNano

func (UnixNano) MarshalJSON added in v0.2.0

func (un UnixNano) MarshalJSON() ([]byte, error)

func (*UnixNano) Scan added in v0.3.0

func (un *UnixNano) Scan(src any) error

func (*UnixNano) UnmarshalJSON added in v0.2.0

func (un *UnixNano) UnmarshalJSON(data []byte) error

func (UnixNano) Value added in v0.3.0

func (un UnixNano) Value() (driver.Value, error)

type UnixNanoString added in v0.2.0

type UnixNanoString struct {
	time.Time
}

func (UnixNanoString) MarshalJSON added in v0.2.0

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

func (*UnixNanoString) UnmarshalJSON added in v0.2.0

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

type UnixString added in v0.2.0

type UnixString struct {
	time.Time
}

func (UnixString) MarshalJSON added in v0.2.0

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

func (*UnixString) UnmarshalJSON added in v0.2.0

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

Jump to

Keyboard shortcuts

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