epoch

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2021 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

View Source
const WindowSize = 60

WindowSize is number seconds in an epoch window

Variables

View Source
var IdleTimeout int64 = 120

IdleTimeout is the number of seconds to record idle events for

Functions

func Minute

func Minute(t int64) int64

Minute rounds epoch seconds down to the nearst epoch minute

func MinuteNow

func MinuteNow() int64

MinuteNow returns the epoch minute for the current time

func Now

func Now() int64

Now returns the current Unix time

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL