time

package
v0.0.0-...-375d9ab Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

This file has automatically been generated on Wed Feb 26 15:50:55 +05 2020. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func After

func After(d time.Duration) <-chan time.Time

func AfterFunc

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

func Date

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

func DurationHours

func DurationHours(d time.Duration) float64

func DurationMicroseconds

func DurationMicroseconds(d time.Duration) int64

func DurationMilliseconds

func DurationMilliseconds(d time.Duration) int64

func DurationMinutes

func DurationMinutes(d time.Duration) float64

func DurationNanoseconds

func DurationNanoseconds(d time.Duration) int64

func DurationRound

func DurationRound(d time.Duration, m time.Duration) time.Duration

func DurationSeconds

func DurationSeconds(d time.Duration) float64

func DurationString

func DurationString(d time.Duration) string

func DurationTruncate

func DurationTruncate(d time.Duration, m time.Duration) time.Duration

func FixedZone

func FixedZone(name string, offset int) *time.Location

func LoadLocation

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

func LoadLocationFromTZData

func LoadLocationFromTZData(name string, data []byte) (*time.Location, error)

func LocationString

func LocationString(l *time.Location) string

func MonthString

func MonthString(m time.Month) string

func NewTicker

func NewTicker(d time.Duration) *time.Ticker

func NewTimer

func NewTimer(d time.Duration) *time.Timer

func Now

func Now() time.Time

func Parse

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

func ParseDuration

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

func ParseErrorError

func ParseErrorError(e *time.ParseError) string

func ParseInLocation

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

func Since

func Since(t time.Time) time.Duration

func Tick

func Tick(d time.Duration) <-chan time.Time

func TimeAdd

func TimeAdd(t time.Time, d time.Duration) time.Time

func TimeAddDate

func TimeAddDate(t time.Time, years int, months int, days int) time.Time

func TimeAfter

func TimeAfter(t time.Time, u time.Time) bool

func TimeAppendFormat

func TimeAppendFormat(t time.Time, b []byte, layout string) []byte

func TimeBefore

func TimeBefore(t time.Time, u time.Time) bool

func TimeClock

func TimeClock(t time.Time) (int, int, int)

func TimeDate

func TimeDate(t time.Time) (int, time.Month, int)

func TimeDay

func TimeDay(t time.Time) int

func TimeEqual

func TimeEqual(t time.Time, u time.Time) bool

func TimeFormat

func TimeFormat(t time.Time, layout string) string

func TimeGobDecode

func TimeGobDecode(t *time.Time, data []byte) error

func TimeGobEncode

func TimeGobEncode(t time.Time) ([]byte, error)

func TimeHour

func TimeHour(t time.Time) int

func TimeISOWeek

func TimeISOWeek(t time.Time) (int, int)

func TimeIn

func TimeIn(t time.Time, loc *time.Location) time.Time

func TimeIsZero

func TimeIsZero(t time.Time) bool

func TimeLocal

func TimeLocal(t time.Time) time.Time

func TimeLocation

func TimeLocation(t time.Time) *time.Location

func TimeMarshalBinary

func TimeMarshalBinary(t time.Time) ([]byte, error)

func TimeMarshalJSON

func TimeMarshalJSON(t time.Time) ([]byte, error)

func TimeMarshalText

func TimeMarshalText(t time.Time) ([]byte, error)

func TimeMinute

func TimeMinute(t time.Time) int

func TimeMonth

func TimeMonth(t time.Time) time.Month

func TimeNanosecond

func TimeNanosecond(t time.Time) int

func TimeRound

func TimeRound(t time.Time, d time.Duration) time.Time

func TimeSecond

func TimeSecond(t time.Time) int

func TimeString

func TimeString(t time.Time) string

func TimeSub

func TimeSub(t time.Time, u time.Time) time.Duration

func TimeTruncate

func TimeTruncate(t time.Time, d time.Duration) time.Time

func TimeUTC

func TimeUTC(t time.Time) time.Time

func TimeUnix

func TimeUnix(t time.Time) int64

func TimeUnixNano

func TimeUnixNano(t time.Time) int64

func TimeUnmarshalBinary

func TimeUnmarshalBinary(t *time.Time, data []byte) error

func TimeUnmarshalJSON

func TimeUnmarshalJSON(t *time.Time, data []byte) error

func TimeUnmarshalText

func TimeUnmarshalText(t *time.Time, data []byte) error

func TimeWeekday

func TimeWeekday(t time.Time) time.Weekday

func TimeYear

func TimeYear(t time.Time) int

func TimeYearDay

func TimeYearDay(t time.Time) int

func TimeZone

func TimeZone(t time.Time) (string, int)

func TimerReset

func TimerReset(t *time.Timer, d time.Duration) bool

func TimerStop

func TimerStop(t *time.Timer) bool

func Unix

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

func Until

func Until(t time.Time) time.Duration

func WeekdayString

func WeekdayString(d time.Weekday) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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