Documentation ¶
Overview ¶
Package timeutil provides various time related utilities
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GraftYear ¶
Graft a year (in string form) onto a target time.
E.g. if the target time is 01-Jan-2020 and you graft "2021" onto it, result is 01-Jan-2021. If the provided year is not a valid integer, nothing will be done.
func ParseDateTimeString ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.