

Public static final Duration ZERO Constant representing zero millisecond duration Methods inherited from interface java.lang. ReadableDurationĮquals, getMillis, hashCode, isEqual, isLongerThan, isShorterThan, toPeriod, toString ObjectĬlone, finalize, getClass, notify, notifyAll, wait, wait, wait


AbstractDurationĬompareTo, equals, hashCode, isEqual, isLongerThan, isShorterThan, toPeriod, toString GetMillis, setMillis, toIntervalFrom, toIntervalTo, toPeriod, toPeriod, toPeriod, toPeriodFrom, toPeriodFrom, toPeriodTo, toPeriodTo WithDurationAdded( ReadableDuration durationToAdd,Ĭreates a new Duration instance with a different milisecond length.
JODA TIME MINUS MINUTES PLUS
Returns a new duration with this length plus that specified multiplied by the scalar. Get this duration as an immutable Duration objectĬonverts this duration to a period in days assuming that there are theĬonverts this duration to a period in hours assuming that there are theĬonverts this duration to a period in minutes assuming that there are theĬonverts this duration to a period in seconds assuming that there are the There are the standard number of milliseconds in a second. There are the standard number of milliseconds in a minute.Ĭreate a duration with the specified number of seconds assuming that There are the standard number of milliseconds in an hour.Ĭreate a duration with the specified number of minutes assuming that There are the standard number of milliseconds in a day.Ĭreate a duration with the specified number of hours assuming that Returns a new duration with this length plus that specified.Ĭreate a duration with the specified number of days assuming that Parses a Duration from the specified string. Returns a new duration with this length minus that specified. Standard number of milliseconds in a second.Ĭreate a duration with the specified number of milliseconds. Gets the length of this duration in seconds assuming that there are the Standard number of milliseconds in a minute. Gets the length of this duration in minutes assuming that there are the Standard number of milliseconds in an hour. Gets the length of this duration in hours assuming that there are the Standard number of milliseconds in a day. Gets the length of this duration in days assuming that there are the Since: 1.0 Author: Brian S O'Neill, Stephen Colebourne See Also: Serialized FormĬonstant representing zero millisecond durationĬreates a duration from the given millisecond duration.Ĭreates a duration from the given interval endpoints.Ĭreates a duration from the specified object using the This conversion will typically cause a loss of precision however. There is no concept of fields, such as days or seconds, as these fields can vary in length.Ī duration may be converted to a Period to obtain field values. Public final class Duration extends BaseDuration implements ReadableDuration, SerializableĪn immutable duration specifying a length of time in milliseconds.Ī duration is defined by a fixed number of milliseconds. SUMMARY: NESTED | FIELD | CONSTR | METHODĬlass Duration .AbstractDuration .BaseDuration All Implemented Interfaces: Serializable, Comparable, ReadableDuration
