Documentation
¶
Index ¶
Constants ¶
View Source
const Day = 24 * time.Hour
View Source
const HalfYear = 6 * Month
View Source
const Month = 30 * Day
View Source
const Quarter = 3 * Month
View Source
const Week = 7 * Day
View Source
const Year = 365 * Day
Variables ¶
This section is empty.
Functions ¶
func ConvertFromFancyTime ¶
Converts the following to time.Duration:
"1y" -> 1 year, "2M" -> 2 months, "3w" -> 3 weeks, "4d" -> 4 days, "5h" -> 5 hours, "6m" -> 6 minutes, "7s" -> 7 seconds, "8"-> 8 milliseconds
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.