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.java858 public DateTimeFormatterBuilder appendInstant(int fractionalDigits) { in appendInstant() argument
859 if (fractionalDigits < -1 || fractionalDigits > 9) { in appendInstant()
860 …umentException("The fractional digits must be from -1 to 9 inclusive but was " + fractionalDigits); in appendInstant()
862 appendInternal(new InstantPrinterParser(fractionalDigits)); in appendInstant()
3174 private final int fractionalDigits; field in DateTimeFormatterBuilder.InstantPrinterParser
3176 InstantPrinterParser(int fractionalDigits) { in InstantPrinterParser() argument
3177 this.fractionalDigits = fractionalDigits; in InstantPrinterParser()
3229 if ((fractionalDigits < 0 && inNano > 0) || fractionalDigits > 0) { in format()
3232 for (int i = 0; ((fractionalDigits == -1 && inNano > 0) || in format()
3233 (fractionalDigits == -2 && (inNano > 0 || (i % 3) != 0)) || in format()
[all …]