dateHelpers

package
v1.2.39 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndOfDay

func EndOfDay(t time.Time) time.Time

func FormatAudit

func FormatAudit(in time.Time) string

func FormatCalendar

func FormatCalendar(in time.Time) string

func FormatDMY

func FormatDMY(in time.Time) string

func FormatHuman

func FormatHuman(t time.Time) string

func FormatHumanFromString

func FormatHumanFromString(in string) (time.Time, error)

func FormatYMD

func FormatYMD(in time.Time) string

func IsAfterOrEqualTo

func IsAfterOrEqualTo(t1, t2 time.Time) bool

func IsBeforeOrEqualTo

func IsBeforeOrEqualTo(t1, t2 time.Time) bool

func StartOfDay

func StartOfDay(t time.Time) time.Time

Types

type DateFormat

type DateFormat struct {
	External     string
	DMY          string
	Internal     string
	Detail       string
	YMD          string
	Calendar     string
	BackupDate   string
	BackupFolder string
}
var Format DateFormat

Jump to

Keyboard shortcuts

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