peer2me.log
Class LogElementDate

java.lang.Object
  extended by peer2me.log.LogElementDate

public class LogElementDate
extends java.lang.Object

A simple class for storing the date/time in which a logentry is created. Mainly used to format the date in a more presentable manner.

Author:
Tommy Bjoernsgaard

Method Summary
 java.util.Date getDate()
          Gets the Date-object
 java.lang.String getDateString()
          Gets a presentable string of the date/time.
 java.lang.String toString()
          Overrides the default toString() returning a formatted string of the Date-object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getDate

public java.util.Date getDate()
Gets the Date-object

Returns:
the actual Date-object

getDateString

public java.lang.String getDateString()
Gets a presentable string of the date/time. An example of the return value: 02.Apr 20:50:39 Will return the same toString();

Returns:
The formatted string

toString

public java.lang.String toString()
Overrides the default toString() returning a formatted string of the Date-object

Overrides:
toString in class java.lang.Object