public class DateIntervalUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static double |
DAYS_IN_MONTH
The days in month
|
static double |
DAYS_IN_YEAR
The days in year
|
Constructor and Description |
---|
DateIntervalUtil() |
Modifier and Type | Method and Description |
---|---|
static long |
fromDays(double days)
Gets interval from value in days
|
static long |
fromHours(double hours)
Gets interval from value in hours
|
static long |
fromMinutes(double minutes)
Gets interval from value in minutes
|
static long |
fromMonths(double months)
Gets interval from value in months
|
static long |
fromSeconds(double seconds)
Gets interval from value in seconds
|
static long |
fromWeeks(double weeks)
Gets interval from value in weeks
|
static long |
fromYears(double years)
Gets interval from value in years
|
public static final double DAYS_IN_YEAR
public static final double DAYS_IN_MONTH
public static long fromSeconds(double seconds)
seconds
- The value in secondspublic static long fromMinutes(double minutes)
minutes
- The value in minutespublic static long fromHours(double hours)
hours
- The value in hourspublic static long fromDays(double days)
days
- The value in dayspublic static long fromWeeks(double weeks)
weeks
- The value in weekspublic static long fromMonths(double months)
months
- The value in monthspublic static long fromYears(double years)
years
- The value in years