Help us shape the future of Go! Take the 2026 Go Developer Survey

timestamp

package
v0.39.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 2 Imported by: 168

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromFloatSeconds

func FromFloatSeconds(ts float64) int64

FromFloatSeconds returns a millisecond timestamp from float seconds.

func FromTime

func FromTime(t time.Time) int64

FromTime returns a new millisecond timestamp from a time.

func Time

func Time(ts int64) time.Time

Time returns a new time.Time object from a millisecond timestamp.

Types

This section is empty.

Jump to

Keyboard shortcuts

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