public class HourTransform extends java.lang.Object implements NumberTransform
NumberTransform that format a second-count into a
H:MM:SS format.
If the input is a Duration then the second value will be taken
(even though the default numerical value of a Duration is millisecond. However as it is easy to
lose the duration nature of a value (for example by taking averages) it is better to use a MillisToHourTransform
for Duration values.| Constructor and Description |
|---|
HourTransform() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
convert(java.lang.Object old) |
java.lang.String |
getDefaultValue() |
void |
setDefaultValue(java.lang.String default_value) |
static java.lang.String |
toHrsMinSec(java.lang.Number d)
Convert a
Number of seconds into a HH:MM:SS string |