2004.04.29


com.jdc.type
Class TimestampHelper

java.lang.Object
  |
  +--com.jdc.lang.Object
        |
        +--com.jdc.type.TimestampHelper
All Implemented Interfaces:
DefaultLocale

public class TimestampHelper
extends Object
implements DefaultLocale

TimestampHelper is a utility class that provides advanced Timestamp manipulation methods to simplify the manipulation of Timestamp objects.

Version:
1.0
Author:
Jay Damon

Field Summary
 
Fields inherited from class com.jdc.lang.Object
string
 
Fields inherited from interface com.jdc.util.DefaultLocale
DEFAULT_LOCALE
 
Constructor Summary
TimestampHelper()
          Constructs a new TimestampHelper object for the default locale.
TimestampHelper(Locale locale)
          Constructs a new TimestampHelper object for the specified Locale.
 
Method Summary
static Timestamp toDate(int date)
          Returns a Timestamp for an int date value in YYYYMMDD format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimestampHelper

public TimestampHelper()
Constructs a new TimestampHelper object for the default locale.


TimestampHelper

public TimestampHelper(Locale locale)
Constructs a new TimestampHelper object for the specified Locale.

Method Detail

toDate

public static Timestamp toDate(int date)
Returns a Timestamp for an int date value in YYYYMMDD format. Hours, minutes, seconds, and milliseconds are set to 0 (zero).

Returns:
The corresponding Timestamp for the int date value.

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.