Documentation ¶
Index ¶
- func CheckForDoubleDateParts(dpOne CoveredDateParts, dpTwo CoveredDateParts) error
- func GetDateFormat(date string, parts CoveredDateParts) (string, string)
- func GetDateFormatMulti(dates []string, parts CoveredDateParts) (string, string)
- func HasAllDateParts(cdp CoveredDateParts) bool
- type CoveredDateParts
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
Click to show internal directories.
Click to hide internal directories.