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 ).
TimeUtils wrappers should be used 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()
Leave a Reply
You must be logged in to post a comment.