Discover Packages
mleku.dev/git/nostr
timestamp
package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Mar 9, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 6
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.
FromTime returns a T from a time.Time
Now returns the current UNIX timestamp of the current second.
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.
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.
This is to
func (tp *Tp ) Clone() (tc *Tp )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.