timestamps

package
v4.0.0-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package timestamps is a simple library that creates timestamps and datetimes in a specific format.

Its use is two fold: 1) Simplify code since a one liner can now be used instead of the code blocks below (very minimal difference, I know). 2) Reduce formatting mistakes since calls to these func will always return a datetime or timestamp with the same format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ISO8601

func ISO8601() string

ISO8601 returns a datetime with the format YY-MM-DDTHH:MM:SS.mmmZ

func Unix

func Unix() int

Unix returns the number of seconds as an integer since epoch

Types

This section is empty.

Jump to

Keyboard shortcuts

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