Java org.joda.time Hours fields, constructors, methods, implement or subclass

Example usage for Java org.joda.time Hours fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.joda.time Hours.

The text is from its open source code.

Field

HoursONE
Constant representing one hour.
HoursTHREE
Constant representing three hours.
HoursEIGHT
Constant representing eight hours.

Constructor

Hours(int hours)
Creates a new instance representing a number of hours.

Method

intgetHours()
Gets the number of hours that this period represents.
HourshoursBetween(ReadableInstant start, ReadableInstant end)
Creates a Hours representing the number of whole hours between the two specified datetimes.
HourshoursBetween(ReadablePartial start, ReadablePartial end)
Creates a Hours representing the number of whole hours between the two specified partial datetimes.
HourshoursIn(ReadableInterval interval)
Creates a Hours representing the number of whole hours in the specified interval.
HoursparseHours(String periodStr)
Creates a new Hours by parsing a string in the ISO8601 format 'PTnH'.
MinutestoStandardMinutes()
Converts this period in hours to a period in minutes assuming a 60 minute hour.
SecondstoStandardSeconds()
Converts this period in hours to a period in seconds assuming a 60 minute hour and 60 second minute.