public class DateTime extends Object
| Constructor and Description |
|---|
DateTime() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDate() |
long |
getDateInSeconds() |
Date |
getParsedDate() |
String |
getTime() |
void |
setDate(String date) |
void |
setDateFormat(String dateFormat)
override the date format string.
|
void |
setTime(String time) |
void |
setTimeFormat(String timeFormat)
override the time format string.
|
String |
toString() |
public String getDate()
public void setDate(String date)
public String getTime()
public void setTime(String time)
public Date getParsedDate() throws ParseException
ParseExceptionpublic long getDateInSeconds()
throws ParseException
ParseExceptionpublic void setDateFormat(String dateFormat)
dateFormat - public void setTimeFormat(String timeFormat)
timeFormat - MMBase 1.9-SNAPSHOT - ${javadoctimestamp}