Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromBytes ¶
FromBytes converts a given binary array value to time.Time, expecting to only find values after 1970-01-01.
func FromUint64 ¶
FromUint64 converts a given uint64 value back to time.Time.
func Stamp ¶
func Stamp() uint64
Stamp returns a uint64 timestamp in microsecond that is unique and ever increasing, so that even if called multiple times in the same millisecond each call will return a different and increasing value.
This can be safely called from multiple threads, and does not lock.
func ToBytes ¶
ToBytes converts time to a binary value suitable for sorting. This is made to work with dates >=1970-01-01 and will not work properly for data prior to that.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.