Example usage for org.apache.commons.lang.time DateFormatUtils formatUTC

List of usage examples for org.apache.commons.lang.time DateFormatUtils formatUTC

Introduction

In this page you can find the example usage for org.apache.commons.lang.time DateFormatUtils formatUTC.

Prototype

public static String formatUTC(Date date, String pattern, Locale locale) 

Source Link

Document

Formats a date/time into a specific pattern using the UTC time zone.

Usage

From source file:dataform.components.WorkTimer.java

private void timer_ActionPerformed(ActionEvent evt) {
    stopWatch.split();/*from  w w w  .j av a  2 s.c  o  m*/
    setText(DateFormatUtils.formatUTC(stopWatch.getTime(), "HH:mm:ss", new Locale("EN", "GB")));
    stopWatch.unsplit();
}