|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sakaiproject.tool.assessment.ui.listener.util.TimeUtil
public class TimeUtil
Description: Time conversion utility class
| Constructor Summary | |
|---|---|
TimeUtil()
|
|
| Method Summary | |
|---|---|
String |
convertFromServerDateToTimeZone2String(SimpleDateFormat ndf,
Date tz2Date,
TimeZone tz1)
Convert a Date reprepsentation of date and time in the server TimeZone to String representation of date and time in client TimeZone used for display. |
Date |
convertFromTimeZone1StringToServerDate(SimpleDateFormat ndf,
String tz1string,
TimeZone tz1)
Convert a String reprepsentation of date and time in the client TimeZone to Date representation of date and time in server TimeZone before saving to DB. |
String |
getDisplayDateTime(SimpleDateFormat ndf,
Date serverDate)
Convert a Date reprepsentation of date and time to String in the client timezone for display |
Date |
getServerDateTime(SimpleDateFormat ndf,
String clientString)
Convert a String reprepsentation of date and time to Date on the server timezone |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeUtil()
| Method Detail |
|---|
public Date convertFromTimeZone1StringToServerDate(SimpleDateFormat ndf,
String tz1string,
TimeZone tz1)
public String convertFromServerDateToTimeZone2String(SimpleDateFormat ndf,
Date tz2Date,
TimeZone tz1)
public Date getServerDateTime(SimpleDateFormat ndf,
String clientString)
public String getDisplayDateTime(SimpleDateFormat ndf,
Date serverDate)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||