timestamp

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ElapsedTimeSince

func ElapsedTimeSince(t time.Time) int64

ElapsedTimeSince returns the difference between t and now.

func IncT

func IncT(t int64, m int) int64

IncT increments a timstamp (in seconds) by m minutes.

func Nano

func Nano() int64

Nano returns the curent time in miliseconds UTC

func Now

func Now() int64

Now returns the curent time in seconds UTC

func ToHour

func ToHour(t int64) int

ToHour retuns the hour of the day for the timestamp, in local time

func ToHourUTC added in v2.5.0

func ToHourUTC(t int64) int

ToHourUTC retuns the hour of the day for the timestamp, UTC time

func ToUTC

func ToUTC(t int64) string

ToUTC converts a timestamp to UTC timestamp

func ToWeekday

func ToWeekday(t int64) int

ToWeekday retuns the day of the week for the timestamp

Types

This section is empty.

Jump to

Keyboard shortcuts

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