times

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: BSD-3-Clause Imports: 1 Imported by: 34

Documentation

Overview

Package times contains time utility functions for Mute.

Index

Constants

View Source
const Day = uint64(24 * 60 * 60)

Day defines the number of seconds in a day.

Variables

This section is empty.

Functions

func NinetyDaysLater

func NinetyDaysLater() int64

NinetyDaysLater returns the time 90 days later from now in UTC.

func Now

func Now() int64

Now returns the current time in UTC as Unix time, the number of seconds elapsed since January 1, 1970 UTC.

func NowNano

func NowNano() int64

NowNano returns the current time in UTC as Unix time, the number of nanoseconds elapsed since January 1, 1970 UTC.

func OneYearLater

func OneYearLater() int64

OneYearLater returns the time one year later from now in UTC.

func ThirtyDaysLater

func ThirtyDaysLater() int64

ThirtyDaysLater returns the time 30 days later from now in UTC.

Types

This section is empty.

Jump to

Keyboard shortcuts

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