time

package
v0.0.0-...-1a5deed Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultFormat is the default format for timestamps
	DefaultFormat = "2006-01-02 15:04:05"

	// DateFormat is the default format for dates
	DateFormat = "2006-01-02"

	// StringFormat is the format when time is converted to string
	StringFormat = "2006-01-02 15:04:05.999999999 -0700 MST"

	// YearFormat represents a year format
	YearFormat = "2016"
)

Variables

This section is empty.

Functions

func FromDate

func FromDate(date string) (time.Time, error)

FromDate returns a time from a date string

Types

This section is empty.

Jump to

Keyboard shortcuts

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