public class Duration
  Comment     Returned-by     Constructor-argument     Method-argument     Field-type     Type-bound     Links  

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

implements Comparable<Duration>, Serializable

Since:  JavaFX 2.0