timex

package
v0.0.0-...-97acc8f Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: AGPL-3.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Day = Duration(time.Hour * 24)
View Source
var Microsecond = Duration(time.Microsecond)
View Source
var Millisecond = Duration(time.Millisecond)
View Source
var Month = Duration(time.Hour * 24 * 30)
View Source
var Nanosecond = Duration(time.Nanosecond)
View Source
var Week = Duration(time.Hour * 24 * 7)

Functions

This section is empty.

Types

type Duration

type Duration time.Duration

Duration is a wrapper around time.Duration that allows for JSON marshalling and unmarshalling

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() ([]byte, error)

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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