|
Last modified: 21 Jan 2005
The TimeUtils class is designed to subsitute all other H-Sphere classes
dealing with time. This class is needed for testing any H-Sphere features that use time
(like accounts, domain registration renewals, and the like).
From now on, please ALWAYS
use the following TimeUtils wrappers instead of any other Date/Time functions:
System.currentTimeMillis() = TimeUtils.currentTimeMillis()
new java.util.Date = TimeUtils.getDate()
Calendar.getInstance() = TimeUtils.getCalendar()
Thread.sleep(s) + TimeUtils.sleep(s)
Other utilities HIGHLY recommendable for usage:
java.sql.Date getSQLDate()
java.sql.Timestamp getSQLTimestamp()
java.sql.Time getSQLTime()
java.util.Time getTime()
|