Example usage for org.joda.time LocalTime minusHours

List of usage examples for org.joda.time LocalTime minusHours

Introduction

In this page you can find the example usage for org.joda.time LocalTime minusHours.

Prototype

public LocalTime minusHours(int hours) 

Source Link

Document

Returns a copy of this time minus the specified number of hours.

Usage

From source file:javaapplication5.NewJFrame.java

public static LocalTime decreaseTime(LocalTime time, int h, int m) {
    time = time.minusHours(h);
    time = time.minusMinutes(m);/*from   ww  w.j a v a  2 s.co m*/
    return time;
}