time

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: Unlicense Imports: 1 Imported by: 0

Documentation

Overview

Package time implements time related utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(datum int64) string

Format the given datum as an RFC3339 string 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 Parse

func Parse(value string) (int64, error)

Parse the time value as an RFC3339 string and return it as 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