Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractTimeComponents ¶
func ExtractTimeComponents(duration time.Duration) (days, hours, minutes, seconds, microseconds int64)
ExtractTimeComponents extracts number of days, hours, minutes, seconds, microseconds from duration
func TryParseAsTime ¶ added in v2.13.0
TryParseAsTime attempts to parse the provided value as a time using one of the given formats.
The function iterates over the provided formats and tries to parse the value into a time.Time object. It returns the parsed time and a boolean indicating whether the parsing was successful.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.