fasttime

package
v0.0.0-...-3e353e7 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2025 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Now

func Now() time.Time

Now return current time object

func NowUTC

func NowUTC() time.Time

NowUTC return current time object in UTC

func NowUTCPlusOffset

func NowUTCPlusOffset(offset int) time.Time

NowUTCPlusOffset return current time object in UTC with offset in hours

func UnixDate

func UnixDate() uint64

UnixDate returns date from the current unix timestamp.

The date is calculated by dividing unix timestamp by (24*3600)

func UnixHour

func UnixHour() uint64

UnixHour returns hour from the current unix timestamp.

The hour is calculated by dividing unix timestamp by 3600

func UnixTimestamp

func UnixTimestamp() uint64

UnixTimestamp returns the current unix timestamp in seconds.

It is faster than time.Now().Unix()

func UnixTimestampNano

func UnixTimestampNano() uint64

UnixTimestampNano returns the current unix timestamp in nanoseconds.

It is faster than time.Now().UnixNano()

Types

This section is empty.

Jump to

Keyboard shortcuts

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