times

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromUnix

func FromUnix(sec, frac int64, resolution time.Duration) time.Time

FromUnix converts a Unix timestamp in the given resolution to Time.

func FromUnixMicro

func FromUnixMicro(sec, microsec int64) time.Time

FromUnixMicro converts a Unix timestamp in microseconds to Time.

func FromUnixMilli

func FromUnixMilli(sec, millisec int64) time.Time

FromUnixMilli converts a Unix timestamp in milliseconds to Time.

func Unix

func Unix(t time.Time, resolution time.Duration) int64

Unix converts the time to a Unix timestamp in the given resolution (e.g. time.Millisecond).

func UnixMicro

func UnixMicro(t time.Time) int64

UnixMicro converts the time to a Unix timestamp in microseconds.

func UnixMilli

func UnixMilli(t time.Time) int64

UnixMilli converts the time to a Unix timestamp in milliseconds.

Types

This section is empty.

Jump to

Keyboard shortcuts

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