Documentation ¶
Overview ¶
Helper functions for handling time.Time objects.
Index ¶
Constants ¶
View Source
const ( FormatDate = "2006-01-02" FormatDatetime = "2006-01-02 15:04:05" FormatDatetimeTZ = "2006-01-02T15:04:05Z" FormatDatetimeTZnano = "2006-01-02T15:04:05.000000Z07" FormatDatetimeMilli = "2006-01-02 15:04:05.000" )
Variables ¶
This section is empty.
Functions ¶
func FirstOfMonth ¶
Returns a time.Time timestamp of first day of given month. Time format:
"2006-01-02T15:04:05Z"
func MicrosecondsToTime ¶ added in v0.2.3
Converts microseconds to time.Time object.
func NanosecondsToTime ¶
Converts nanoseconds to time.Time object.
func TimeToMicroseconds ¶
Converts time.Time object to microseconds.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.