Example usage for org.apache.commons.lang3.time DateUtils setHours

List of usage examples for org.apache.commons.lang3.time DateUtils setHours

Introduction

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

Prototype

public static Date setHours(final Date date, final int amount) 

Source Link

Document

Sets the hours field to a date returning a new object.

Usage

From source file:util.HeatingProperties.java

public static Date checkoutTime(Date day) {
    return DateUtils.setMinutes(DateUtils.setHours(day, 11), 30);
}

From source file:util.HeatingProperties.java

public static Date checkinTime(Date day) {
    return DateUtils.setMinutes(DateUtils.setHours(day, 14), 30);
}