Documentation ¶
Index ¶
- Constants
- func ConvertToNoDateTimeString(timeString *string) (*string, error)
- func CurrentDate() time.Time
- func CurrentLocation() *time.Location
- func DateDBFormattedString(date time.Time) string
- func DateDBFormattedStringDateOnly(date time.Time) string
- func DateEqual(date1, date2 time.Time) bool
- func DateLayoutDB() string
- func DateLayoutFilenameSafe() string
- func DateLayoutForDB() string
- func DateLayoutHumanReadable() string
- func DateLayoutHumanReadableWithTime() string
- func DateLayoutTime() string
- func DateLayoutTrimmed() string
- func DateLayoutYearMonthDay() string
- func DateLayoutYearMonthDayTime() string
- func DateLayoutYearMonthDayTimeMillisecondTZ() string
- func DateLayoutYearMonthDayTimeT() string
- func DateLayoutYearMonthDayTimeTZ() string
- func DateLayoutYearMonthDayTimeTimezone() string
- func DateLocal(date *time.Time)
- func ParseTimeString(timeString string) (time.Time, error)
- func TimeBefore(a string, b string) bool
Constants ¶
View Source
const TimeZoneString = "Africa/Johannesburg"
Variables ¶
This section is empty.
Functions ¶
func ConvertToNoDateTimeString ¶
ConvertToNoDateTimeString - Converts a PSQL Time type to Go Time type
func CurrentDate ¶
func CurrentLocation ¶
func DateDBFormattedString ¶
func DateLayoutDB ¶
func DateLayoutDB() string
func DateLayoutFilenameSafe ¶
func DateLayoutFilenameSafe() string
func DateLayoutForDB ¶
func DateLayoutForDB() string
func DateLayoutHumanReadable ¶
func DateLayoutHumanReadable() string
func DateLayoutHumanReadableWithTime ¶
func DateLayoutHumanReadableWithTime() string
func DateLayoutTime ¶
func DateLayoutTime() string
func DateLayoutTrimmed ¶
func DateLayoutTrimmed() string
func DateLayoutYearMonthDay ¶
func DateLayoutYearMonthDay() string
func DateLayoutYearMonthDayTime ¶
func DateLayoutYearMonthDayTime() string
func DateLayoutYearMonthDayTimeMillisecondTZ ¶
func DateLayoutYearMonthDayTimeMillisecondTZ() string
func DateLayoutYearMonthDayTimeT ¶
func DateLayoutYearMonthDayTimeT() string
func DateLayoutYearMonthDayTimeTZ ¶
func DateLayoutYearMonthDayTimeTZ() string
func DateLayoutYearMonthDayTimeTimezone ¶
func DateLayoutYearMonthDayTimeTimezone() string
func ParseTimeString ¶
ParseTimeString attempts to parse the string as the default date-time format, or as a date only format
func TimeBefore ¶
TimeBefore determines whether a (string format HH:mm) is earlier than b (string format HH:mm)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.