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

Source Files

jsontime.go

Version
v0.1.0
Published
Sep 6, 2023
Platform
linux/amd64
Imports
2 packages
Last checked
10 hours ago

Tools for package owners.