List of usage examples for org.apache.commons.lang.time DateFormatUtils formatUTC
public static String formatUTC(Date date, String pattern, Locale locale)
Formats a date/time into a specific pattern using the UTC time zone.
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(); }