dtformats

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Layout

type Layout string
const (
	ANSIC       Layout = "Mon Jan _2 15:04:05 2006"
	UnixDate    Layout = "Mon Jan _2 15:04:05 MST 2006"
	RubyDate    Layout = "Mon Jan 02 15:04:05 -0700 2006"
	RFC822      Layout = "02 Jan 06 15:04 MST"
	RFC822Z     Layout = "02 Jan 06 15:04 -0700" // RFC822 with numeric zone
	RFC850      Layout = "Monday, 02-Jan-06 15:04:05 MST"
	RFC1123     Layout = "Mon, 02 Jan 2006 15:04:05 MST"
	RFC1123Z    Layout = "Mon, 02 Jan 2006 15:04:05 -0700" // RFC1123 with numeric zone
	RFC3339     Layout = "2006-01-02T15:04:05Z07:00"
	RFC3339Nano Layout = "2006-01-02T15:04:05.999999999Z07:00"
	Kitchen     Layout = "3:04PM"
	Stamp       Layout = "Jan _2 15:04:05"
	StampMilli  Layout = "Jan _2 15:04:05.000"
	StampMicro  Layout = "Jan _2 15:04:05.000000"
	StampNano   Layout = "Jan _2 15:04:05.000000000"
)

func (Layout) HasTimeZone

func (layout Layout) HasTimeZone() bool

func (Layout) Is

func (layout Layout) Is(format string) bool

func (Layout) IsDateTime

func (layout Layout) IsDateTime() bool

func (Layout) IsTimeFocused

func (layout Layout) IsTimeFocused() bool

func (Layout) IsTimeOnly

func (layout Layout) IsTimeOnly() bool

func (Layout) Value

func (layout Layout) Value() string

Jump to

Keyboard shortcuts

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