Example usage for org.apache.commons.lang.time DateUtils SEMI_MONTH

List of usage examples for org.apache.commons.lang.time DateUtils SEMI_MONTH

Introduction

In this page you can find the example usage for org.apache.commons.lang.time DateUtils SEMI_MONTH.

Prototype

int SEMI_MONTH

To view the source code for org.apache.commons.lang.time DateUtils SEMI_MONTH.

Click Source Link

Document

This is half a month, so this represents whether a date is in the top or bottom half of the month.

Usage

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));

}