package
Version:
v1.3.7
Opens a new window with list of versions in this module.
Published: Dec 12, 2024
License: Unlicense
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func ToVarint(dst by, t *T) by
T is a convenience type for UNIX 64 bit timestamps of 1 second
precision.
FromBytes converts from a string of raw bytes.
FromTime returns a T from a time.Time
FromUnix converts from a standard int64 unix timestamp.
func FromVarint(b by) (t *T, rem by, err er)
Now returns the current UNIX timestamp of the current second.
func (t *T) Bytes() (b by)
func (t *T) FromInt(i no)
func (t *T) FromVarint(dst by) (b by)
I64 returns the current UNIX timestamp of the current second as int64.
Int returns the timestamp as an int.
func (t *T) Marshal(dst by) (b by)
func (t *T) String() (s st)
Time converts a timestamp.Time value into a canonical UNIX 64 bit 1 second
precision timestamp.
U64 returns the current UNIX timestamp of the current second as uint64.
func (t *T) Unmarshal(b by) (r by, err er)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.