net.pacbell.jfai.toh.ui
Class AbsoluteTimeFormat

java.lang.Object
  extended by net.pacbell.jfai.toh.ui.AbsoluteTimeFormat

public final class AbsoluteTimeFormat
extends Object

Utility class to format a point in time as a string representation. If the time is today, then the default format for time of day is used. Otherwise, the default format for date and time is used.

Author:
Jürgen Failenschmid

Method Summary
static String format(Date date)
          Calculates a string representation of the given absolute point in time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

format

public static String format(Date date)
Calculates a string representation of the given absolute point in time. If the argument date falls before or on the same date as today, then only the default time fields are used. Otherwise the default date and time fields are used.

Parameters:
date - the time to format
Returns:
a string representation of the given time