Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormattedNow ¶ added in v1.0.4
func FormattedNow() []byte
FormattedNow returns formatted byte time
func GetLocation ¶ added in v1.1.0
func IsDaemonRunning ¶ added in v1.1.0
func IsDaemonRunning() bool
func UnixNanoNow ¶ added in v1.0.1
func UnixNanoNow() int64
UnixNanoNow returns current unix nano time
func UnixUNanoNow ¶ added in v1.0.2
func UnixUNanoNow() uint32
UnixUNanoNow returns current unix nano time
Types ¶
type Fastime ¶
type Fastime interface { IsDaemonRunning() bool GetFormat() string SetFormat(format string) Fastime GetLocation() *time.Location SetLocation(location *time.Location) Fastime Now() time.Time Stop() UnixNow() int64 UnixUNow() uint32 UnixNanoNow() int64 UnixUNanoNow() uint32 FormattedNow() []byte StartTimerD(ctx context.Context, dur time.Duration) Fastime }
func SetLocation ¶ added in v1.1.0
SetLocation replaces time location
Click to show internal directories.
Click to hide internal directories.