zone

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Nanosecond  Duration = 1
	Microsecond          = 1000 * Nanosecond
	Millisecond          = 1000 * Microsecond
	Second               = 1000 * Millisecond
	Minute               = 60 * Second
	Hour                 = 60 * Minute
)

Variables

This section is empty.

Functions

func After added in v0.5.7

func After(d Duration) <-chan Time

func Initialize added in v0.5.7

func Initialize()

func Sleep added in v0.5.7

func Sleep(d Duration)

func Tick added in v0.5.7

func Tick(d Duration) <-chan Time

Types

type Duration added in v0.5.7

type Duration = time.Duration

func ParseDuration added in v0.5.7

func ParseDuration(s string) (Duration, error)

func Since added in v0.5.7

func Since(t Time) Duration

func Until added in v0.5.7

func Until(t Time) Duration

type Location added in v0.5.7

type Location = time.Location

func GetLocation added in v0.5.7

func GetLocation() *Location

type Month added in v0.5.7

type Month = time.Month

type Ticker added in v0.5.7

type Ticker = time.Ticker

func NewTicker added in v0.5.7

func NewTicker(d Duration) *Ticker

type Time added in v0.5.7

type Time = time.Time

func At

func At(t Time) Time

func Date added in v0.5.7

func Date(year int, month Month, day, hour, min, sec, nsec int) Time

func Now added in v0.5.7

func Now() Time

func Parse added in v0.5.7

func Parse(layout string, value string) (Time, error)

func Unix added in v0.5.7

func Unix(sec int64, nsec int64) Time

type Timer added in v0.5.7

type Timer = time.Timer

func AfterFunc added in v0.5.7

func AfterFunc(d Duration, f func()) *Timer

func NewTimer added in v0.5.7

func NewTimer(d Duration) *Timer

type Weekday added in v0.5.7

type Weekday = time.Weekday
const (
	Sunday Weekday = iota
	Monday
	Tuesday
	Wednesday
	Thursday
	Friday
	Saturday
)

Jump to

Keyboard shortcuts

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