|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aragost.javahg.DateTime
public class DateTime
Represents a timestamp and a timezone offset
| Constructor Summary | |
|---|---|
DateTime(Date date)
Deprecated. Use constructor with tz argument |
|
DateTime(Date date,
TimeZone tz)
Construct a new DateTime with the specified date and timezone |
|
DateTime(long timestamp,
int tzOffset)
Construct a new DateTime with the specified timestamp and timezone |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
Date |
getDate()
|
String |
getHgString()
|
int |
hashCode()
|
static DateTime |
parse(String string)
Create a new instance by parsing the given String. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DateTime(long timestamp,
int tzOffset)
timestamp - tzOffset -
public DateTime(Date date,
TimeZone tz)
date - tz - @Deprecated public DateTime(Date date)
date - | Method Detail |
|---|
public static DateTime parse(String string)
The string should be in standard Mercurial format, i.e.
'
string -
public Date getDate()
public String getHgString()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||