Home
last modified time | relevance | path

Searched refs:fractionalDigits (Results 1 – 2 of 2) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKInstantPrinterParser.java189 … public void test_print_digits(int fractionalDigits, long instantSecs, int nano, String expected) { in test_print_digits() argument
191 …DateTimeFormatter f = new DateTimeFormatterBuilder().appendInstant(fractionalDigits).toFormatter(); in test_print_digits()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatterBuilder.java861 public DateTimeFormatterBuilder appendInstant(int fractionalDigits) { in appendInstant() argument
862 if (fractionalDigits < -1 || fractionalDigits > 9) { in appendInstant()
863 …umentException("The fractional digits must be from -1 to 9 inclusive but was " + fractionalDigits); in appendInstant()
865 appendInternal(new InstantPrinterParser(fractionalDigits)); in appendInstant()
3177 private final int fractionalDigits; field in DateTimeFormatterBuilder.InstantPrinterParser
3179 InstantPrinterParser(int fractionalDigits) { in InstantPrinterParser() argument
3180 this.fractionalDigits = fractionalDigits; in InstantPrinterParser()
3232 if ((fractionalDigits < 0 && inNano > 0) || fractionalDigits > 0) { in format()
3235 for (int i = 0; ((fractionalDigits == -1 && inNano > 0) || in format()
3236 (fractionalDigits == -2 && (inNano > 0 || (i % 3) != 0)) || in format()
[all …]