jsontime

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MPL-2.0 Imports: 7 Imported by: 1

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

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

func (*Unix) UnmarshalJSON

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

func (Unix) Value

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

type UnixMicro

type UnixMicro struct {
	time.Time
}

func UMicro

func UMicro(time time.Time) UnixMicro

func UMicroInto

func UMicroInto(ts int64) UnixMicro

func UnixMicroNow

func UnixMicroNow() UnixMicro

func (UnixMicro) MarshalJSON

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

func (*UnixMicro) Scan

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

func (*UnixMicro) UnmarshalJSON

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

func (UnixMicro) Value

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

type UnixMicroString

type UnixMicroString struct {
	time.Time
}

func (UnixMicroString) MarshalJSON

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

func (*UnixMicroString) UnmarshalJSON

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

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

func (*UnixMilli) UnmarshalJSON

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

func (UnixMilli) Value

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

type UnixMilliString

type UnixMilliString struct {
	time.Time
}

func (UnixMilliString) MarshalJSON

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

func (*UnixMilliString) UnmarshalJSON

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

type UnixNano

type UnixNano struct {
	time.Time
}

func UN

func UN(time time.Time) UnixNano

func UNInt

func UNInt(ts int64) UnixNano

func UnixNanoNow

func UnixNanoNow() UnixNano

func (UnixNano) MarshalJSON

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

func (*UnixNano) Scan

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

func (*UnixNano) UnmarshalJSON

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

func (UnixNano) Value

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

type UnixNanoString

type UnixNanoString struct {
	time.Time
}

func (UnixNanoString) MarshalJSON

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

func (*UnixNanoString) UnmarshalJSON

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

type UnixString

type UnixString struct {
	time.Time
}

func (UnixString) MarshalJSON

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

func (*UnixString) UnmarshalJSON

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