Searched refs:fractionalDigits (Results 1 – 2 of 2) sorted by relevance
189 … public void test_print_digits(int fractionalDigits, long instantSecs, int nano, String expected) { in test_print_digits() argument191 …DateTimeFormatter f = new DateTimeFormatterBuilder().appendInstant(fractionalDigits).toFormatter(); in test_print_digits()
861 public DateTimeFormatterBuilder appendInstant(int fractionalDigits) { in appendInstant() argument862 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.InstantPrinterParser3179 InstantPrinterParser(int fractionalDigits) { in InstantPrinterParser() argument3180 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 …]