Documentation
¶
Index ¶
- func EndOfDay(t time.Time) time.Time
- func EndOfMonth(t time.Time) time.Time
- func FormatAsDateTime(t time.Time) string
- func Hours(hours int, end time.Time) iter.Seq[Hour]
- func ParseAsDateTime(tt string) time.Time
- func StartOfDay(t time.Time) time.Time
- func StartOfMonth(t time.Time) time.Time
- type Hour
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatAsDateTime ¶
FormatAsDateTime formats a given time.Time value into a string representation in the format "YYYY-MM-DD HH:MM:SS" based on the current local time zone
func ParseAsDateTime ¶
ParseAsDateTime parses a string representation of date and time in the format "YYYY-MM-DD HH:MM:SS" into a time.Time value based on the local time zone
Types ¶
Click to show internal directories.
Click to hide internal directories.