date

package
v0.5.38 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForDoubleDateParts

func CheckForDoubleDateParts(dpOne CoveredDateParts, dpTwo CoveredDateParts) error

func GetDateFormat

func GetDateFormat(date string, parts CoveredDateParts) (string, string)

func GetDateFormatMulti

func GetDateFormatMulti(dates []string, parts CoveredDateParts) (string, string)

func HasAllDateParts

func HasAllDateParts(cdp CoveredDateParts) bool

Types

type CoveredDateParts

type CoveredDateParts struct {
	Day   bool `yaml:"day,omitempty"`
	Month bool `yaml:"month,omitempty"`
	Year  bool `yaml:"year,omitempty"`
	Time  bool `yaml:"time,omitempty"`
}

CoveredDateParts is used to determine what parts of a date a DateComponent covers

func MergeDateParts

func MergeDateParts(dpOne CoveredDateParts, dpTwo CoveredDateParts) CoveredDateParts

Jump to

Keyboard shortcuts

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