Discover Packages
github.com/Hubmakerlabs/replicatr
pkg
nostr
timestamp
package
Version:
v1.2.12
Opens a new window with list of versions in this module.
Published: May 17, 2024
License: GPL-2.0, MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
T is a convenience type for UNIX 64 bit timestamps of 1 second
precision.
func FromBytes(b []byte ) T
FromBytes converts from a string of raw bytes.
FromTime returns a T from a time.Time
FromUnix converts from a standard int64 unix timestamp.
Now returns the current UNIX timestamp of the current second.
func (t T ) Bytes() (b []byte )
I64 returns the current UNIX timestamp of the current second as int64.
Int returns the timestamp as an int.
Ptr returns the pointer so values can register as nil and omitted.
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.
Tp is a synonym that makes it possible to use this value with the extra
feature of the property of set/unset by the Ptr function which takes the
address.
func (tp *Tp ) Clone() (tc *Tp )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.