Java org.joda.time Instant fields, constructors, methods, implement or subclass

Example usage for Java org.joda.time Instant fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.joda.time Instant.

The text is from its open source code.

Implementation

org.joda.time.Instant has the following implementations.
Click this link to see all its implementation.

Field

InstantEPOCH
The Java epoch of 1970-01-01T00:00:00Z.

Constructor

Instant(long instant)
Constructs an instance set to the milliseconds from 1970-01-01T00:00:00Z.
Instant(Object instant)
Constructs an instance from an Object that represents a datetime.
Instant()
Constructs an instance set to the current system millisecond time.

Method

intcompareTo(ReadableInstant other)
Compares this object with the specified object for ascending millisecond instant order.
booleanequals(Object readableInstant)
Compares this object with the specified object for equality based on the millisecond instant, chronology and time zone.
intget(DateTimeFieldType type)
Get the value of one of the fields of a datetime using the chronology of the instant.
ChronologygetChronology()
Gets the chronology of the instant, which is ISO in the UTC zone.
longgetMillis()
Gets the milliseconds of the instant.
DateTimeZonegetZone()
Gets the time zone of the instant from the chronology.
booleanisAfter(long instant)
Is this instant strictly after the millisecond instant passed in comparing solely by millisecond.
booleanisAfterNow()
Is this instant strictly after the current instant comparing solely by millisecond.
booleanisBefore(long instant)
Is this instant strictly before the millisecond instant passed in comparing solely by millisecond.
booleanisBeforeNow()
Is this instant strictly before the current instant comparing solely by millisecond.
booleanisEqual(long instant)
Is this instant equal to the millisecond instant passed in comparing solely by millisecond.
booleanisEqualNow()
Is this instant equal to the current instant comparing solely by millisecond.
Instantminus(long duration)
Gets a copy of this instant with the specified duration taken away.
Instantminus(ReadableDuration duration)
Gets a copy of this instant with the specified duration taken away.
Instantnow()
Obtains an Instant set to the current system millisecond time.
Instantparse(String str)
Parses an Instant from the specified string.
Instantparse(String str, DateTimeFormatter formatter)
Parses an Instant from the specified string using a formatter.
Instantplus(long duration)
Gets a copy of this instant with the specified duration added.
Instantplus(ReadableDuration duration)
Gets a copy of this instant with the specified duration added.
DatetoDate()
Get the date time as a java.util.Date.
DateTimetoDateTime(DateTimeZone zone)
Get this object as a DateTime using the same chronology but a different zone.
DateTimetoDateTime()
Get this object as a DateTime using ISOChronology in the default zone.
InstanttoInstant()
Get this object as an Instant by returning this.
MutableDateTimetoMutableDateTime()
Get this object as a MutableDateTime using ISOChronology in the default zone.
StringtoString()
Output the date time in ISO8601 format (yyyy-MM-ddTHH:mm:ss.SSSZZ).
StringtoString(DateTimeFormatter formatter)
Uses the specified formatter to convert this partial to a String.
InstantwithMillis(long newMillis)
Gets a copy of this instant with different millis.