Example usage for Java javafx.util Duration fields, constructors, methods, implement or subclass
The text is from its open source code.
Duration | ZERO A Duration of 0 (no time). |
Duration | INDEFINITE An Infinite Duration. |
double | millis The value of this duration, in fractional milliseconds |
Duration(@NamedArg("millis") double millis) Creates a new Duration with potentially fractional millisecond resolution. |
Duration | divide(double n) Divide this instance by a number to return a new Duration instance. |
Duration | divide(Duration other) Divide this instance by another Duration to return the ratio. |
boolean | greaterThan(Duration other) Returns true if the specified duration is greater than (>) this instance. |
Duration | hours(double h) Factory method that returns a Duration instance representing the specified number of hours. |
Duration | minutes(double m) Factory method that returns a Duration instance representing the specified number of minutes. |
Duration | seconds(double s) Factory method that returns a Duration instance representing the specified number of seconds. |
Duration | subtract(Duration other) Subtract other Duration instance from this instance to return a new Duration instance. |
double | toMillis() Returns the number of milliseconds in this period or Double.POSITIVE_INFINITY if the period is INDEFINITE or NaN if the period is UNKNOWN. |
double | toSeconds() Returns the number of seconds in this period or Double.POSITIVE_INFINITY if the period is INDEFINITE or NaN if the period is UNKNOWN. |