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()
858 public DateTimeFormatterBuilder appendInstant(int fractionalDigits) { in appendInstant() argument859 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.InstantPrinterParser3176 InstantPrinterParser(int fractionalDigits) { in InstantPrinterParser() argument3177 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 …]