Package org.apache.storm.st.utils
Class TimeUtil
java.lang.Object
org.apache.storm.st.utils.TimeUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.joda.time.DateTime
ceil
(org.joda.time.DateTime dateTime, int sec) static org.joda.time.DateTime
floor
(org.joda.time.DateTime dateTime, int sec) static void
sleepMilliSec
(int milliSec) static void
sleepSec
(int sec)
-
Constructor Details
-
TimeUtil
public TimeUtil()
-
-
Method Details
-
sleepSec
public static void sleepSec(int sec) -
sleepMilliSec
public static void sleepMilliSec(int milliSec) -
floor
public static org.joda.time.DateTime floor(org.joda.time.DateTime dateTime, int sec) -
ceil
public static org.joda.time.DateTime ceil(org.joda.time.DateTime dateTime, int sec)
-