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
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 ¶
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.
Types ¶
This section is empty.