ROUTMIO_DEV

TOOLS

DDL GeneratorDDL → ERDDummy Data GeneratorRegex TesterJSON FormatterBase64 ConverterTimestamp ConverterCron BuilderMeeting Minutes

DATABASE

LANGUAGE

Go time

10 functions

time.Nowtime.Now() time.Time

Returns the current local time.

time.Sincetime.Since(t time.Time) time.Duration

Returns the time elapsed since t.

time.Untiltime.Until(t time.Time) time.Duration

Returns the duration until t.

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

Parses a formatted string and returns the time value it represents.

time.Formatt.Format(layout string) string

Returns a textual representation of the time value.

time.Addt.Add(d time.Duration) time.Time

Returns the time t+d.

time.Subt.Sub(u time.Time) time.Duration

Returns the duration t-u.

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

Returns the local Time corresponding to the given Unix time.

time.Sleeptime.Sleep(d time.Duration)

Pauses the current goroutine for at least the duration d.

time.Durationtime.Duration (type)

A duration type representing the elapsed time between two instants as nanoseconds.

Terms of ServicePrivacy PolicyContactIcons by Flaticon