internal

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ParseDateWith

func ParseDateWith(s string, location *time.Location, formats []TimeFormat) (d time.Time, e error)

Types

type TimeFormat

type TimeFormat struct {
	Format string
	Typ    TimeFormatType
}

func (TimeFormat) HasTimezone

func (f TimeFormat) HasTimezone() bool

type TimeFormatType

type TimeFormatType int
const (
	TimeFormatNoTimezone TimeFormatType = iota
	TimeFormatNamedTimezone
	TimeFormatNumericTimezone
	TimeFormatNumericAndNamedTimezone
	TimeFormatTimeOnly
)

func (TimeFormatType) String

func (i TimeFormatType) String() string

Jump to

Keyboard shortcuts

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