@Test public void testBasicParserCompiler() throws Exception { TimestampFormat fmt = compiler.compile("E, dd MMM yyyy a KK:m:s.S Z"); String utcPattern = "yyyy-MM-ddTHH:mm:ss.SSSz"; TimestampFormat utc = compiler.compile(utcPattern); long millis = fmt.parse("Mon, 08 Apr 2017 PM 11:11:10.123 UTC", defaultLocale); sink.clear(); utc.format(millis, defaultLocale, "Z", sink); TestUtils.assertEquals("2017-04-08T23:11:10.123Z", sink); }
public TimestampFormat compile(CharSequence pattern) { return compile(pattern, false); }
DateFormatCompiler { public TimestampFormat compile(CharSequence pattern) { return compile(pattern, false); } }
DateFormatCompiler { public TimestampFormat compile(CharSequence pattern) { return compile(pattern, false); } DateFormatCompiler(); }
DateFormatCompiler { public TimestampFormat compile(CharSequence pattern) { return compile(pattern, false); } DateFormatCompiler(); TimestampFormat compile(CharSequence pattern); TimestampFormat compile(CharSequence pattern, boolean generic); TimestampFormat compile(CharSequence pattern, int lo, int hi, boolean generic); }
DateFormatCompiler { public TimestampFormat compile(CharSequence pattern) { return compile(pattern, false); } DateFormatCompiler(); TimestampFormat compile(CharSequence pattern); TimestampFormat compile(CharSequence pattern, boolean generic); TimestampFormat compile(CharSequence pattern, int lo, int hi, boolean generic);  }