public class Period
extends java.lang.Object
JDateTime
it is quite
easy to calculate period in days - just by subtracting two julian day numbers.
However, calculating hours, minutes and seconds would require more calculation
and this class provides simple and faster period calculation.Modifier and Type | Field and Description |
---|---|
protected long |
days |
protected int |
hours |
protected int |
milliseconds |
protected int |
minutes |
protected int |
seconds |
Modifier and Type | Method and Description |
---|---|
long |
getDays()
Returns number of days in period.
|
int |
getHours()
Returns hours in period.
|
int |
getMilliseconds()
Returns milliseconds in period.
|
int |
getMinutes()
Returns minutes in period.
|
int |
getSeconds()
Returns seconds in period.
|
protected final long days
protected final int hours
protected final int minutes
protected final int seconds
protected final int milliseconds
public long getDays()
public int getHours()
public int getMinutes()
public int getSeconds()
public int getMilliseconds()
Copyright © 2003-2013 Jodd Team