Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NumericDate ¶
NumericDate defines a JSON numeric value representing the number of seconds from 1970-01-01T00:00:00Z UTC (ignoring leap years).
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
Click to show internal directories.
Click to hide internal directories.