Documentation ¶
Overview ¶
Package time proxy is a package that provides a time proxy for the app.
Index ¶
Constants ¶
View Source
const ( // Millisecond is a proxy for time.Millisecond. Millisecond = time.Millisecond )
Variables ¶
View Source
var UTC = *time.UTC
UTC is a variable for time.UTC.
Functions ¶
This section is empty.
Types ¶
type Time ¶
type Time interface { Date(year int, month time.Month, day, hour, min, sec, nsec int, loc *time.Location) *TimeInstance Now() *TimeInstance }
Time is an interface for time.
type TimeInstance ¶
TimeInstance is a struct that implements TimeInstanceInterface.
func (*TimeInstance) Format ¶
func (t *TimeInstance) Format(layout string) string
Format is a proxy for time.Time.Format.
func (*TimeInstance) Scan ¶
func (t *TimeInstance) Scan(value interface{}) error
Scan implements the sql.Scanner interface.
type TimeInstanceInterface ¶
type TimeInstanceInterface interface { Format(layout string) string Scan(value interface{}) error Value() (driver.Value, error) }
TimeInstanceInterface is an interface for time.Time.
Click to show internal directories.
Click to hide internal directories.