OpMath

com.opmath.util.time
Class FormattedDate

java.lang.Object
  |
  +--com.opmath.util.time.FormattedDate

public class FormattedDate
extends Object

An ecapsulation of the Java system time and date format facilities.

Copyright: (c) 2002 The Open Math Company Limited

The Terms of Distribution of this software are stipulated in the javadoc Overview for this project.

Since:
J2SE 1.3.0
Version:
utilities-v011
Author:
Bruno Beloff bruno.beloff@opmath.com

Constructor Summary
FormattedDate()
           
 
Method Summary
static String toString(Locale location)
          Returns the current system date and time as a String.
static String toString(long time, Locale location)
          Returns the given long interpreted as date and time, as a String.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormattedDate

public FormattedDate()
Method Detail

toString

public static String toString(long time,
                              Locale location)
Returns the given long interpreted as date and time, as a String. The date and time are given in long format, with the style determined by the parameter location.

Parameters:
time - a long determining the date and time.
location - the Locale determining the date and time style.
Returns:
a String carrying the formatted date.
Since:
J2SE 1.3

toString

public static String toString(Locale location)
Returns the current system date and time as a String. The date and time are given in long format, with the style determined by the parameter location.

Parameters:
location - the Locale determining the date and time style.
Returns:
a String carrying the formatted date.
Since:
J2SE 1.3

OpMath

Submit a bug or feature to Open Math
Copyright © 2002 Open Math Company Limited, Brighton, UK