Package me.bimmr.bimmcore.utils
Class TimeUtil
- java.lang.Object
-
- me.bimmr.bimmcore.utils.TimeUtil
-
public class TimeUtil extends java.lang.Object
A Utilities class to manage time
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TimeUtil.Interval
static class
TimeUtil.TimeFormat
static class
TimeUtil.TimeInterval
A single type of time
-
Constructor Summary
Constructors Constructor Description TimeUtil()
-
Method Summary
Modifier and Type Method Description static java.lang.String
getExactTime(TimeUtil.TimeFormat timeFormat, long time)
static long
getInterval(TimeUtil.TimeInterval timeInterval, long time)
static java.lang.String
getTime(TimeUtil.TimeFormat timeFormat, long time)
static void
setIntervalStrings(TimeUtil.Interval year, TimeUtil.Interval month, TimeUtil.Interval day, TimeUtil.Interval hour, TimeUtil.Interval minute, TimeUtil.Interval second)
-
-
-
Method Detail
-
setIntervalStrings
public static void setIntervalStrings(TimeUtil.Interval year, TimeUtil.Interval month, TimeUtil.Interval day, TimeUtil.Interval hour, TimeUtil.Interval minute, TimeUtil.Interval second)
-
getInterval
public static long getInterval(TimeUtil.TimeInterval timeInterval, long time)
-
getExactTime
public static java.lang.String getExactTime(TimeUtil.TimeFormat timeFormat, long time)
-
getTime
public static java.lang.String getTime(TimeUtil.TimeFormat timeFormat, long time)
-
-