Documentation ¶
Overview ¶
TinyTime sacrifices sub-second precision and longevity for minimal time storage One aim is to avoid storing pointers to timezones, so simply UTC Uses just 4 bytes when Encoded, also low memory
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TinyTime ¶
type TinyTime uint32
func Decode ¶
Decode takes a byte slice of at least 4 length and takes the first bytes as the TinyTime
func NewTinyTime ¶
func (TinyTime) Encode ¶
Encode takes a byte slice of at least length 4 and sets the first 4 bytes as the TinyTime
Click to show internal directories.
Click to hide internal directories.