Example usage for org.apache.commons.lang3.time FastDateFormat getTimeInstance

List of usage examples for org.apache.commons.lang3.time FastDateFormat getTimeInstance

Introduction

In this page you can find the example usage for org.apache.commons.lang3.time FastDateFormat getTimeInstance.

Prototype

public static FastDateFormat getTimeInstance(final int style, final TimeZone timeZone) 

Source Link

Document

Gets a time formatter instance using the specified style and time zone in the default locale.

Usage

From source file:info.magnolia.ui.workbench.column.DateColumnFormatter.java

@Inject
public DateColumnFormatter(AbstractColumnDefinition definition) {
    super(definition);

    final Locale locale = MgnlContext.getLocale();
    dateFormatter = FastDateFormat.getDateInstance(FastDateFormat.MEDIUM, locale);
    timeFormatter = FastDateFormat.getTimeInstance(FastDateFormat.SHORT, locale);
}