getAllButMillisSecondsAndMinutes
This commit is contained in:
parent
d1b6388c33
commit
81f5a623cb
@ -49,6 +49,14 @@ public class TimeUnit implements Comparable<TimeUnit>
|
|||||||
ret.remove(SECOND);
|
ret.remove(SECOND);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
public static TreeSet<TimeUnit> getAllButMillisSecondsAndMinutes()
|
||||||
|
{
|
||||||
|
TreeSet<TimeUnit> ret = new TreeSet<TimeUnit>(all);
|
||||||
|
ret.remove(MILLISECOND);
|
||||||
|
ret.remove(SECOND);
|
||||||
|
ret.remove(MINUTE);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
public static TimeUnit get(String timeUnitString)
|
public static TimeUnit get(String timeUnitString)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user