package
0.1.0
Repository: https://github.com/codenamor/common.git
Documentation: pkg.go.dev

# Functions

CalcBusinessDays calculates the business days between two dates, not accounting for the holidays The calculation is inclusive for both dates.
CalcDays returns the number of days between two dates.
ConvertDateFormat converts a date string from one layout to another layout.
InvalidTime is used to compare Time to the result of an invalid string value conversion.
MaxTime returns the time.Time representation of 9999/12/31.
MinTime returns the time.Time representation of 0001/01/01.
StringToDate converts a string date format to time.Time if supported, otherwise a utils.InvalidTime() is returned.
TimeRangeInBounds determines whether the record's time range is included in the specified time ranges.
ToSearchDateFormat returns a formatted date ("2006-01-02").
ToSearchDateFormatFromString converts a string date to "2006-01-02" format.

# Constants

No description provided by the author

# Structs

ComparableDate provides an interface to compare a record's date with a provided date.

# Interfaces

TimeBound provides an interface for records to specify their date boundaries.