Modifier | Constructor and Description |
---|---|
protected |
Components(int hours,
int minutes,
double seconds) |
Modifier and Type | Method and Description |
---|---|
int |
getHours()
Get the whole hours in this duration.
|
int |
getMinutes()
Get the whole minutes in this duration.
|
double |
getSeconds()
Get the duration's seconds component.
|
String |
toSimpleString()
Return the duration as a string in a form containing hours, minutes, and seconds, excluding the fractional part of the
seconds.
|
String |
toString()
Return the duration as a string in a form containing hours, minutes, and seconds, including the fractional part of the
seconds.
|
public int getHours()
public int getMinutes()
public double getSeconds()
public String toString()
HHH:MM:SS.mmm
, where
public String toSimpleString()
HHH:MM:SS.mmm
, where
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.