Categorygithub.com/aperturerobotics/timestamp
modulepackage
0.9.3
Repository: https://github.com/aperturerobotics/timestamp.git
Documentation: pkg.go.dev

# README

Timestamp

Standard cross-language timestamp object.

Introduction

This is a simple protobuf encoding for timestamps.

Note: in most cases you will want to use the built-in Protobuf timestamp. This is just a helpful implementation for those cases where a simpler uint64 millisecond representation makes more sense.

# Functions

Now returns a timestamp for now.
ToTime generates a time object from a millisecond timestamp.
ToTimestamp generates a millisecond timestamp from the time object.
ToUnixMs converts a time to unix ms.

# Variables

ErrEmptyTimestamp is returned if the timestamp was empty.

# Structs

Timestamp contains a cross-platform timestamp.