Documentation
¶
Index ¶
- func FormattedNow() (now []byte)
- func GetFormat() (form string)
- func GetLocation() (loc *time.Location)
- func IsDaemonRunning() (running bool)
- func Now() (now time.Time)
- func Since(t time.Time) (dur time.Duration)
- func Stop()
- func UnixNanoNow() (now int64)
- func UnixNow() (now int64)
- func UnixUNanoNow() (now uint32)
- func UnixUNow() (now uint32)
- type Fastime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormattedNow ¶ added in v1.0.4
func FormattedNow() (now []byte)
FormattedNow returns formatted byte time
func GetLocation ¶ added in v1.1.0
func IsDaemonRunning ¶ added in v1.1.0
func IsDaemonRunning() (running bool)
func Since ¶ added in v1.1.7
Since returns the time elapsed since t. It is shorthand for fastime.Now().Sub(t).
func UnixNanoNow ¶ added in v1.0.1
func UnixNanoNow() (now int64)
UnixNanoNow returns current unix nano time
func UnixUNanoNow ¶ added in v1.0.2
func UnixUNanoNow() (now 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
Since(t time.Time) time.Duration
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.