Example usage for java.text DateFormat getNumberFormat

List of usage examples for java.text DateFormat getNumberFormat

Introduction

In this page you can find the example usage for java.text DateFormat getNumberFormat.

Prototype

public NumberFormat getNumberFormat() 

Source Link

Document

Gets the number formatter which this date/time formatter uses to format and parse a time.

Usage

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());

}