List of usage examples for org.apache.commons.lang3.time FastDateFormat getTimeInstance
public static FastDateFormat getTimeInstance(final int style)
Gets a time formatter instance using the specified style in the default time zone and locale.
From source file:storybook.toolkit.swing.SwingUtil.java
public static JLabel createTimestampLabel() { Date date = new Date(); String dateStr = FastDateFormat.getDateInstance(FastDateFormat.MEDIUM).format(date); String timeStr = FastDateFormat.getTimeInstance(FastDateFormat.MEDIUM).format(date); return new JLabel(dateStr + " - " + timeStr); }