org.mmbase.module.community
Class TimeStamp

java.lang.Object
  |
  +--java.util.Date
        |
        +--org.mmbase.module.community.TimeStamp
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable, java.io.Serializable

Deprecated. Do not use this class. Store timestamps as Long or Date instead.

public class TimeStamp
extends java.util.Date

Creates a timestamp value out of two integer values. Supposedly needed because the Informix setup had no configuration for long values (in which the timestamps are expressed), which means they need be store as two integers instead.

Version:
28 May 2001
Author:
Dirk-Jan Hoekstra, Pierre van Rooden
See Also:
Serialized Form

Constructor Summary
TimeStamp()
          Deprecated. Creates a TimeStamp based on the current time.
TimeStamp(java.lang.Integer low, java.lang.Integer high)
          Deprecated. Creates a TimeStamp based on a specified time.
TimeStamp(int low, int high)
          Deprecated.  
TimeStamp(long time)
          Deprecated. Creates a TimeStamp based on a specified time.
 
Method Summary
 int highIntegerValue()
          Deprecated. Retrieve the 16 most significant bits of a time value (a long representing milliseconds since 1/1/1970.
 int lowIntegerValue()
          Deprecated. Retrieve the 16 least significant bits of a time value (a long representing milliseconds since 1/1/1970.
 
Methods inherited from class java.util.Date
after, before, clone, compareTo, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, toString, UTC
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeStamp

public TimeStamp()
Deprecated. 
Creates a TimeStamp based on the current time.

TimeStamp

public TimeStamp(long time)
Deprecated. 
Creates a TimeStamp based on a specified time.
Parameters:
time - the time in milliseconds since 1/1/1970

TimeStamp

public TimeStamp(java.lang.Integer low,
                 java.lang.Integer high)
Deprecated. 
Creates a TimeStamp based on a specified time.
Parameters:
low - the 16 least significant bits of a time value (a long representing milliseconds since 1/1/1970
high - the 16 most significant bits of the time value

TimeStamp

public TimeStamp(int low,
                 int high)
Deprecated. 
Method Detail

lowIntegerValue

public int lowIntegerValue()
Deprecated. 
Retrieve the 16 least significant bits of a time value (a long representing milliseconds since 1/1/1970.

highIntegerValue

public int highIntegerValue()
Deprecated. 
Retrieve the 16 most significant bits of a time value (a long representing milliseconds since 1/1/1970.


MMBase build 1.6.5.20030923