numericdate

package
v0.0.0-...-8297fe0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NumericDate

type NumericDate struct {
	time.Time
}

NumericDate defines a JSON numeric value representing the number of seconds from 1970-01-01T00:00:00Z UTC (ignoring leap years).

func New

func New(year int, month time.Month, day, hour, min, sec int) NumericDate

func NewNowDuration

func NewNowDuration(d time.Duration) NumericDate

func (NumericDate) MarshalJSON

func (n NumericDate) MarshalJSON() ([]byte, error)

func (*NumericDate) UnmarshalJSON

func (n *NumericDate) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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