Home | History | Annotate | Download | only in time

Lines Matching refs:Format

29 		if f.time.Format(RFC3339) != f.formattedValue {
32 t.Errorf(" have=%+v", f.time.Format(RFC3339))
39 format string
70 result := time.Format(test.format)
80 test := FormatTest{"single digit format", "3:4:5", "4:5:6"}
81 result := time.Format(test.format)
104 result := time.Format("2006.01.02")
114 t.Errorf("(jan 1 %d).Format(\"2006.01.02\") = %q, want %q", y, result, want)
121 format string
125 yearSign int // sign of year, -1 indicates the year is not present in the format
168 // In Go 1, .999... was completely ignored in the format, meaning the first two
187 time, err := Parse(test.format, test.value)
308 // Problematic time zone format needs special tests.
311 time, err := Parse(test.format, test.value)
365 t2, err := Parse(fmt, t1.Format(fmt))
423 format string
451 _, err := Parse(test.format, test.value)
453 t.Errorf("expected error for %q %q", test.format, test.value)
455 t.Errorf("expected error with %q for %q %q; got %s", test.expect, test.format, test.value, err)
463 got := noon.Format("3:04PM")
467 got = noon.Format("03:04PM")
476 got := midnight.Format("3:04PM")
480 got = midnight.Format("03:04PM")
528 str := time.Format(UnixDate) // uses MST as its time zone
547 format string
567 time, err := Parse(test.format, test.value)
581 timestr := d.Format(test.format)
583 t.Errorf("Format = %s, want %s", timestr, test.value)
590 format := "15:04_20060102"
592 time, err := Parse(format, input)