org.apache.subversion.javahl.types
Class LogDate

java.lang.Object
  extended by org.apache.subversion.javahl.types.LogDate
All Implemented Interfaces:
Serializable

public class LogDate
extends Object
implements Serializable

Holds date for a log message. This class maintains the time to the microsecond and is not lossy.

See Also:
Serialized Form

Constructor Summary
LogDate(String datestr)
           
 
Method Summary
 boolean equals(Object obj)
           
 Calendar getCalender()
          Returns the time of the commit as Calendar
 Date getDate()
          Returns the date of the commit
 long getTimeMicros()
          Returns the time of the commit in microseconds
 long getTimeMillis()
          Returns the time of the commit in milliseconds
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogDate

public LogDate(String datestr)
        throws ParseException
Throws:
ParseException
Method Detail

getTimeMicros

public long getTimeMicros()
Returns the time of the commit in microseconds

Returns:
the time of the commit measured in the number of microseconds since 00:00:00 January 1, 1970 UTC

getTimeMillis

public long getTimeMillis()
Returns the time of the commit in milliseconds

Returns:
the time of the commit measured in the number of milliseconds since 00:00:00 January 1, 1970 UTC

getCalender

public Calendar getCalender()
Returns the time of the commit as Calendar

Returns:
the time of the commit as java.util.Calendar

getDate

public Date getDate()
Returns the date of the commit

Returns:
the time of the commit as java.util.Date

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object