prototime

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 3 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DurationFromProto

func DurationFromProto(duration *google_duration.Duration) time.Duration

DurationFromProto converts a protobuf Duration to a go Duration.

func DurationToProto

func DurationToProto(d time.Duration) *google_duration.Duration

DurationToProto converts a go Duration to a protobuf Duration.

func Now

Now returns the current time as a protobuf Timestamp.

func TimeToTimestamp

func TimeToTimestamp(t time.Time) *google_protobuf.Timestamp

TimeToTimestamp converts a go Time to a protobuf Timestamp.

func TimestampLess

TimestampLess returns true if i is before j.

func TimestampToTime

func TimestampToTime(timestamp *google_protobuf.Timestamp) time.Time

TimestampToTime converts a protobuf Timestamp to a go Time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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