xtime

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ISO8601 = "2006-01-02T15:04:05.000Z07:00"
)

Variables

Functions

func FixedZone

func FixedZone(zoneStr string)

func Now

func Now() time.Time

func Parse

func Parse(s string) time.Time

func TimeFormatISO8601

func TimeFormatISO8601(t time.Time) string

Types

type TimeLimit

type TimeLimit struct {
	Seconds uint `yaml:"seconds"`
	Minutes uint `yaml:"minutes"`
	Days    uint `yaml:"days"`
}

func (TimeLimit) GetSeconds

func (t TimeLimit) GetSeconds() int

func (TimeLimit) GetTimeDuration

func (t TimeLimit) GetTimeDuration() time.Duration

Jump to

Keyboard shortcuts

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