Home | History | Annotate | Download | only in time

Lines Matching refs:Format

9 // These are predefined layouts for use in Time.Format and Time.Parse.
15 // To define your own format, write down what the reference time would look
18 // reference time looks like so that the Format and Parse methods can apply
21 // Within the format string, an underscore _ represents a space that may be
34 // Numeric time zone offsets format as follows:
38 // Replacing the sign in the format with a Z triggers
48 // Text in the format string that is not recognized as part of the reference
49 // time is echoed verbatim during Format and expected to appear verbatim
52 // The executable example for time.Format demonstrates the working
60 // that insist on that format, and RFC3339 should be preferred for new protocols.
425 // String returns the time formatted using the format string
428 return t.Format("2006-01-02 15:04:05.999999999 -0700 MST")
431 // Format returns a textual representation of the time value formatted
432 // according to layout, which defines the format by showing how the reference
441 // to format a time stamp with millisecond precision.
447 func (t Time) Format(layout string) string {
461 // AppendFormat is like Format but appends the textual
601 // Use the -0700 format.
700 // The layout defines the format by showing how the reference time,
704 // the input format. The same interpretation will then be made to the
711 // Also, the executable example for time.Format demonstrates the working
857 // fractional second in the format?
1153 // of missing digits in the format, maximum length 10. If it's