Example usage for org.joda.time Duration toStandardHours

List of usage examples for org.joda.time Duration toStandardHours

Introduction

In this page you can find the example usage for org.joda.time Duration toStandardHours.

Prototype

public Hours toStandardHours() 

Source Link

Document

Converts this duration to a period in hours assuming that there are the standard number of milliseconds in an hour.

Usage

From source file:com.axelor.apps.crm.service.EventReminderService.java

License:Open Source License

public int getHoursDuration(Duration duration) {

    return duration.toStandardHours().getHours();

}

From source file:com.axelor.apps.organisation.service.LeaveRequestService.java

License:Open Source License

public int getHoursDuration(Duration duration) {

    return duration.toStandardHours().getHours();
}

From source file:com.axelor.apps.tool.date.DurationTool.java

License:Open Source License

public static int getHoursDuration(Duration duration) {

    return duration.toStandardHours().getHours();
}