date

package
v0.0.0-...-48f5d39 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2018 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ParseLongFormat    = "2000-01-01 14:30:00 EDT"
	ParseShortFormat   = "2006-January-02"
	ParseOptionExpDate = "20060102"
	LocalLocation      = "America/New_York"
)

gives user options for ways to parse a date

Variables

This section is empty.

Functions

func New

func New(date time.Time) (time.Time, error)

New returns a new time.Time structure with no timestamp Date will always use UTC as the locale.

Types

type Dates

type Dates []time.Time

Dates is a slice of time.Times

func (Dates) Len

func (d Dates) Len() int

func (Dates) Less

func (d Dates) Less(i, j int) bool

func (Dates) Swap

func (d Dates) Swap(i, j int)

Jump to

Keyboard shortcuts

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