Home | History | Annotate | Download | only in time

Lines Matching refs:Format

61 	// Parse a time value from a string in the standard Unix format.
67 // time.Time's Stringer method is useful without any format.
68 fmt.Println("default format:", t)
71 fmt.Println("Unix format:", t.Format(time.UnixDate))
74 fmt.Println("Same, in UTC:", t.UTC().Format(time.UnixDate))
77 // layout string used in the format.
79 // The layout string used by the Parse function and Format method
90 // Most uses of Format and Parse use constant layout strings such as
96 got := t.Format(layout)
133 // an AM time. We show both in one format string. Lower case too.
158 // default format: 2015-03-07 11:06:39 -0800 PST
159 // Unix format: Sat Mar 7 11:06:39 PST 2015
178 // See the example for time.Format for a thorough description of how
180 // Format use the same model to describe their input and output.
231 fmt.Printf("t.Round(%6s) = %s\n", d, t.Round(d).Format("15:04:05.999999999"))
257 fmt.Printf("t.Truncate(%5s) = %s\n", d, t.Truncate(d).Format("15:04:05.999999999"))