timestamp

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 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 StringToTime

func StringToTime(format, t string) int64

StringToTime converts a string with a date/time into a timestamp

func ToHour

func ToHour(t int64) int

ToHour retuns the hour of the day for the timestamp

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