Class LogDate
java.lang.Object
org.apache.subversion.javahl.types.LogDate
- All Implemented Interfaces:
java.io.Serializable
public class LogDate
extends java.lang.Object
implements java.io.Serializable
Holds date for a log message. This class maintains
the time to the microsecond and is not lossy.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final java.util.Calendar
private final java.lang.String
private static final java.text.DateFormat
private static final long
private final long
private static final java.util.TimeZone
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
equals
(java.lang.Object obj) java.util.Calendar
Returns the time of the commit as Calendarjava.util.Date
getDate()
Returns the date of the commitlong
Returns the time of the commit in microsecondslong
Returns the time of the commit in millisecondsint
hashCode()
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
formatter
private static final java.text.DateFormat formatter -
UTC
private static final java.util.TimeZone UTC -
timeMicros
private final long timeMicros -
cachedString
private final java.lang.String cachedString -
cachedDate
private final java.util.Calendar cachedDate
-
-
Constructor Details
-
LogDate
public LogDate(java.lang.String datestr) throws java.text.ParseException - Throws:
java.text.ParseException
-
-
Method Details
-
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 java.util.Calendar getCalender()Returns the time of the commit as Calendar- Returns:
- the time of the commit as java.util.Calendar
-
getDate
public java.util.Date getDate()Returns the date of the commit- Returns:
- the time of the commit as java.util.Date
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj) - Overrides:
equals
in classjava.lang.Object
-