Module javafx.base
Package javafx.util

Class Duration

java.lang.Object
javafx.util.Duration
All Implemented Interfaces:
Serializable, Comparable<Duration>

public class Duration extends Object implements Comparable<Duration>, Serializable

A class that defines a duration of time. Duration instances are immutable, and are therefore replaced rather than modified, similar to BigDecimal. Durations can be created using the constructor, or one of the static construction methods such as seconds(double) or minutes(double).

Since:
JavaFX 2.0
See Also: