time

package
v0.0.0-...-2e2f8e6 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: GPL-3.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const EpochTime = "2022-09-16T15:02:04Z"

Variables

View Source
var (
	Hour = Duration{/* contains filtered or unexported fields */}
)

Functions

func Freeze

func Freeze()

func Unfreeze

func Unfreeze()

Types

type Duration

type Duration struct {
	// contains filtered or unexported fields
}

type Time

type Time struct {
	// contains filtered or unexported fields
}

func Now

func Now() Time

func (Time) Add

func (t Time) Add(d Duration) Time

func (Time) Before

func (t Time) Before(other Time) bool

func (Time) Equal

func (t Time) Equal(other Time) bool

func (Time) IsZero

func (t Time) IsZero() bool

func (Time) MarshalJSON

func (t Time) MarshalJSON() ([]byte, error)

func (*Time) Scan

func (t *Time) Scan(value interface{}) error

func (Time) String

func (t Time) String() string

func (Time) Sub

func (t Time) Sub(d Duration) Time

func (Time) UTC

func (t Time) UTC() Time

func (Time) Value

func (t Time) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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