List of usage examples for org.apache.commons.lang.time DateUtils SEMI_MONTH
int SEMI_MONTH
To view the source code for org.apache.commons.lang.time DateUtils SEMI_MONTH.
Click Source Link
From source file:MainClass.java
public static void main(String[] pArgs) throws Exception { Calendar cal = Calendar.getInstance(); cal.set(2004, 2, 5, 10, 2, 2);/*from w w w. j a va2 s .c o m*/ System.out.println(DateUtils.round(cal.getTime(), DateUtils.SEMI_MONTH)); }