time

package
v0.0.0-...-377a6f8 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Time

type Time struct {
	January     time.Month
	February    time.Month
	March       time.Month
	April       time.Month
	May         time.Month
	June        time.Month
	July        time.Month
	August      time.Month
	September   time.Month
	October     time.Month
	November    time.Month
	December    time.Month
	Sunday      time.Weekday
	Monday      time.Weekday
	Tuesday     time.Weekday
	Wednesday   time.Weekday
	Thursday    time.Weekday
	Friday      time.Weekday
	Saturday    time.Weekday
	Nanosecond  time.Duration
	Microsecond time.Duration
	Millisecond time.Duration
	Second      time.Duration
	Minute      time.Duration
	Hour        time.Duration
	Layout      string
	ANSIC       string
	UnixDate    string
	RubyDate    string
	RFC822      string
	RFC822Z     string
	RFC850      string
	RFC1123     string
	RFC1123Z    string
	RFC3339     string
	RFC3339Nano string
	Kitchen     string
	Stamp       string
	StampMilli  string
	StampMicro  string
	StampNano   string
}

func (Time) Date

func (_ Time) Date(year int, month time.Month, day, hour, min, sec, nsec int, loc *time.Location) time.Time

func (Time) LoadLocation

func (_ Time) LoadLocation(name string) (*time.Location, error)

func (Time) Now

func (_ Time) Now() time.Time

func (Time) Parse

func (_ Time) Parse(layout, value string) (time.Time, error)

func (Time) ParseDuration

func (_ Time) ParseDuration(s string) (time.Duration, error)

func (Time) ParseInLocation

func (_ Time) ParseInLocation(layout, value string, loc *time.Location) (time.Time, error)

func (Time) Since

func (_ Time) Since(t time.Time) time.Duration

func (Time) Unix

func (_ Time) Unix(sec, nsec int64) time.Time

func (Time) UnixMicro

func (_ Time) UnixMicro(usec int64) time.Time

func (Time) UnixMilli

func (_ Time) UnixMilli(msec int64) time.Time

func (Time) Until

func (_ Time) Until(t time.Time) time.Duration

Jump to

Keyboard shortcuts

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