time

package
v0.0.0-...-27647ab Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ANSICDate    = "Mon Jan _2"
	RubyDateDate = "Mon Jan 02"
	RFC822Date   = "02 Jan 06"
	RFC850Date   = "Monday, 02-Jan"
	RFC1123Date  = "Mon, 02 Jan 2006"
	RFC3339Date  = "2006-01-02"

	ANSICTime       = "15:04:05 2006"
	UnixDateTime    = "15:04:05 MST 2006"
	RubyDateTime    = "15:04:05 -0700 2006"
	RFC822Time      = "15:04 MST"
	RFC822ZTime     = "15:04 -0700" // RFC822 with numeric zone
	RFC850Time      = "15:04:05 MST"
	RFC1123ZTime    = "15:04:05 -0700" // RFC1123 with numeric zone
	RFC3339Time     = "15:04:05Z07:00"
	RFC3339NanoTime = "15:04:05.999999999Z07:00"
)
View Source
const (
	RFC3339NZ = "2006-01-02T15:04:05"
)

Variables

This section is empty.

Functions

func ParseAny

func ParseAny(layouts []string, s string) (time.Time, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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