package
1.0.1
Repository: https://github.com/33cn/go-kit.git
Documentation: pkg.go.dev

# Functions

Date returns a date representation of the time value t.
DateTime returns a datetime representation of the time value t.
DoCycleTask processing the cycle task with a period specified by the duration.
Format returns a textual representation of the time value t formatted according to layout.
HongKong returns Hong Kong *time.Location.
Local returns Local *time.Location.
Location returns *time.Location by location name.
Now returns now time.Time.
NowAdd returns now added time.Time.
NowAddDate returns a date representation of now added time value.
NowAddDateTime returns a datetime representation of now added time value.
NowAddFormat returns a textual representation of now added time value formatted according to layout.
NowAddUnixMicrosecond returns now added unix microsecond timestamp.
NowAddUnixMillisecond returns now added unix millisecond timestamp.
NowAddUnixNanosecond returns now added unix nanosecond timestamp.
NowAddUnixSecond returns now added unix second timestamp.
NowDate returns a date representation of now time value.
NowDateTime returns a datetime representation of now time value.
NowFormat returns a textual representation of now time value formatted according to layout.
NowUnixMicrosecond returns now unix microsecond timestamp.
NowUnixMillisecond returns now unix millisecond timestamp.
NowUnixNanosecond returns now unix nanosecond timestamp.
NowUnixSecond returns now unix second timestamp.
Shanghai returns Shanghai *time.Location.
SleepMicrosecond pauses the current goroutine for at least n microsecond.
SleepMillisecond pauses the current goroutine for at least n millisecond.
SleepSecond pauses the current goroutine for at least n second.
StringToTime returns time.Time representation of str value parsed according to layout.
StringToUnix returns unix second timestamp representation of str value parsed according to layout.
UnixAddDate returns time.Time after unix timestamp has been added date.
UnixAddDays returns time.Time after unix timestamp has been added days.
UnixAddMonths returns time.Time after unix timestamp has been added months.
UnixAddYears returns time.Time after unix timestamp has been added years.
UnixAfter reports whether timestamp1 is after timestamp2.
UnixBefore reports whether timestamp1 is before timestamp2.
UnixDifferDays returns the number of days between two timestamp.
UnixDifferHours returns the number of hours between two timestamp.
UnixEqual reports whether timestamp1 is equal timestamp2.
UnixMicrosecond returns t as unix microsecond timestamp.
UnixMillisecond returns t as unix millisecond timestamp.
UnixNanosecond returns t as unix nanosecond timestamp.
UnixSecond returns t as unix second timestamp.
UnixTodayRange returns today start unix second timestamp and today end unix second timestamp.
UnixToTime returns time.Time by unix timestamp.
UTC returns UTC *time.Location.