fasttime

package
v1.92.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 2 Imported by: 67

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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()

Types

This section is empty.

Jump to

Keyboard shortcuts

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