time

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UnixTime

type UnixTime int64

func NewFromTime

func NewFromTime(t time.Time) UnixTime

NewFromTime converts a time.Time value to UnixTime.

func NewFromTimeStamp

func NewFromTimeStamp(ts *timestamp.Timestamp) UnixTime

NewFromTimeStamp converts a timestamp.Timestamp value to UnixTime.

func (UnixTime) ToTime

func (u UnixTime) ToTime() time.Time

ToTime converts UnixTime to a time.Time value.

func (UnixTime) ToTimeStamp

func (u UnixTime) ToTimeStamp() *timestamp.Timestamp

ToTimeStamp converts UnixTime to a timestamp.Timestamp value.

Jump to

Keyboard shortcuts

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