Documentation
¶
Index ¶
Constants ¶
View Source
const FormatLayout = "2006-01-02 15:04:05"
Variables ¶
This section is empty.
Functions ¶
func Format ¶
Format returns a textual representation of the time value formatted according to layout, which defines the format by showing how the reference time Example Format(time.Now(), "YYYY-MM-DD HH:mm:ss")
layout defined by:
- YYYY = 2006,YY = 06
- MM = 01, MMM = Jan,MMMM = January
- DD = 02,
- DDD = Mon,DDDD = Monday
- HH = 15,hh = 03, h = 3
- mm = 04, m = 4
- ss = 05, m = 5
Types ¶
Click to show internal directories.
Click to hide internal directories.