Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DateFormatLayout = "02/01/2006"
DateFormatLayout for use in Time.Format
var DatetimeFormatLayout = "02/01/2006 15:04:05"
DatetimeFormatLayout for use in Time.Format
var Location, _ = time.LoadLocation("Local")
Location by default for generating time.Time objects
Functions ¶
This section is empty.
Types ¶
type Date ¶
type Date string
Date is a date in MySQL format
func (Date) Format ¶
Format returns a textual representation of the time value formatted according to layout, which defines the format by showing how the reference time, defined to be
Mon Jan 2 15:04:05 -0700 MST 2006
would be displayed if it were the value; it serves as an example of the desired output. The same display rules will then be applied to the time value.
type Datetime ¶
type Datetime string
Datetime is a date and time in MySQL format
func NewDatetime ¶
NewDatetime creates a new Datetime from a time.Time object
func (Datetime) Format ¶
Format returns a textual representation of the time value formatted according to layout, which defines the format by showing how the reference time, defined to be
Mon Jan 2 15:04:05 -0700 MST 2006
would be displayed if it were the value; it serves as an example of the desired output. The same display rules will then be applied to the time value.