Documentation
¶
Overview ¶
Package date_util contains utility methods for Time instances.
Index ¶
Constants ¶
View Source
const (
// Format as yyyyMMdd
YMDFormat = "20060102"
)
Variables ¶
This section is empty.
Functions ¶
func TimeToDate ¶
TimeToDate returns t with the time of day zeroed out and the time zone GMT.
Types ¶
type SystemClock ¶
type SystemClock struct { }
SystemClock provides the current time.
func (SystemClock) Now ¶
func (s SystemClock) Now() time.Time
Click to show internal directories.
Click to hide internal directories.