List of usage examples for java.text DateFormat getNumberFormat
public NumberFormat getNumberFormat()
From source file:Main.java
public static void main(String[] argv) throws Exception { DateFormat dateFormat = DateFormat.getTimeInstance(DateFormat.LONG); String s = dateFormat.format(new Date()); System.out.println(dateFormat.getNumberFormat().getMinimumFractionDigits()); }