timeparser

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: MIT Imports: 4 Imported by: 0

README

timeparser

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CreditCardExpirationRFC3339Regex     = regexp.MustCompile(creditCardExpirationRFC3339)
	CreditCardExpirationRFC3339NanoRegex = regexp.MustCompile(creditCardExpirationRFC3339Nano)
	CreditCardExpirationRFC1123Regex     = regexp.MustCompile(creditCardExpirationRFC1123)
	CreditCardExpirationRFC1123ZRegex    = regexp.MustCompile(creditCardExpirationRFC1123Z)
	CreditCardExpirationRFC822ZRegex     = regexp.MustCompile(creditCardExpirationRFC822Z)
	CreditCardExpirationRFC822Regex      = regexp.MustCompile(creditCardExpirationRFC822)
	CreditCardExpirationRFC850Regex      = regexp.MustCompile(creditCardExpirationRFC850)
	CreditCardExpirationRubyFormatRegex  = regexp.MustCompile(creditCardExpirationRubyFormat)
	CreditCardExpirationUnixFormatRegex  = regexp.MustCompile(creditCardExpirationUnixFormat)
	CreditCardExpirationANSICFormatRegex = regexp.MustCompile(creditCardExpirationANSICFormat)
)
View Source
var (
	ErrUnknownFormat = errors.New("unknown format of expiration date")
	ErrInvalidMonth  = errors.New("invalid month in expiration date")
)

Functions

func Get

func Get(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