Documentation ¶
Overview ¶
Package epochtime implements Katzenpost epoch related timekeeping functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Epoch = time.Date(2017, 6, 1, 0, 0, 0, 0, time.UTC)
Epoch is the Katzenpost epoch expressed in UTC.
View Source
var Period = 20 * time.Minute
Period is the duration of a Katzenpost epoch.
View Source
var WarpedEpoch string
WarpedEpoch is a flag that can be passed at build time to set the epoch Period
Functions ¶
func FromUnix ¶
FromUnix returns the Katzenpost epoch, time since the start of the current epoch, and time till the next epoch relative to a Unix time in seconds.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.