timestamp

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package timestamp formats the timestamps drivers report, in one display format so two boards never spell the same instant differently.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromTime added in v0.0.6

func FromTime(moment time.Time) string

FromTime formats a time a driver was handed as a time.Time.

Same rule as above: the zero value becomes an empty string rather than 1970. A JetStream stream with no messages reports a zero first and last time, and rendering those as dates would invent two events.

func FromUnixMilli

func FromUnixMilli(milliseconds int64) string

FromUnixMilli formats a broker-reported epoch in the same display format.

Zero and negative values become an empty string rather than 1970: brokers use zero for "never", and a page that renders that as a date invents an event that did not happen.

func Now

func Now() string

Now returns the current local time in the API's stable display format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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