utilgo.mau.fi/util/jsontime Index | Files

package jsontime

import "go.mau.fi/util/jsontime"

Index

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 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) UnmarshalJSON

func (um *UnixMicro) UnmarshalJSON(data []byte) 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) UnmarshalJSON

func (um *UnixMilli) UnmarshalJSON(data []byte) 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) UnmarshalJSON

func (un *UnixNano) UnmarshalJSON(data []byte) 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

Source Files

helpers.go integer.go string.go

Version
v0.2.1
Published
Nov 16, 2023
Platform
linux/amd64
Imports
3 packages
Last checked
5 hours ago

Tools for package owners.