timestamp

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBeginningOfDay

func GetBeginningOfDay() int64

GetBeginningOfDay method

func GetNowSecondTimestamp

func GetNowSecondTimestamp() int64

GetNowSecondTimestamp method

func GetNowTimestamp

func GetNowTimestamp() int64

GetNowTimestamp method

func GetTimeBucket

func GetTimeBucket(timestamp int64) int64

GetTimeBucket method

Example
result := GetTimeBucket(1537343157984)
fmt.Println(result)
Output:

1537329856512

func GetTimeFromTodayBegin

func GetTimeFromTodayBegin() int64

GetTimeFromTodayBegin method

func GetTimestamp

func GetTimestamp(timestamp string) time.Time

GetTimestamp method

func GetUTC8BeginningOfDay

func GetUTC8BeginningOfDay() int64

GetUTC8BeginningOfDay method

func GetUTC8NowTime

func GetUTC8NowTime() time.Time

GetUTC8NowTime method

func GetUTC8Time

func GetUTC8Time(timestamp int64) time.Time

GetUTC8Time method

func GetUnixTimestamp

func GetUnixTimestamp(timestamp float64) time.Time

GetUnixTimestamp method

Types

This section is empty.

Jump to

Keyboard shortcuts

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