Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.

public interface ChronoLocalDateTime<D extends ChronoLocalDate>

ExtendsComparable<ChronoLocalDateTime<?>>, Temporal, TemporalAccessor

Known subtypesLocalDateTime

A date and a time of day of a calendar, with no zone.

Methods

public abstract D toLocalDate()The date.
public abstract LocalTime toLocalTime()The time of day.
public default long toEpochSecond(ZoneOffset offset)The seconds since 1970-01-01T00:00Z of this date and time at offset.
public default Instant toInstant(ZoneOffset offset)The moment this date and time is at offset.
public default boolean isAfter(ChronoLocalDateTime<?> other)Whether this comes after other on the local time line.
public default boolean isBefore(ChronoLocalDateTime<?> other)Whether this comes before other on the local time line.
public default boolean isEqual(ChronoLocalDateTime<?> other)Whether this is the same date and time as other.

Inherited methods

Method details

toLocalDate

public abstract D toLocalDate()
The date.

toLocalTime

public abstract LocalTime toLocalTime()
The time of day.

toEpochSecond

public default long toEpochSecond(ZoneOffset offset)
The seconds since 1970-01-01T00:00Z of this date and time at offset.

toInstant

public default Instant toInstant(ZoneOffset offset)
The moment this date and time is at offset.

isAfter

public default boolean isAfter(ChronoLocalDateTime<?> other)
Whether this comes after other on the local time line.

isBefore

public default boolean isBefore(ChronoLocalDateTime<?> other)
Whether this comes before other on the local time line.

isEqual

public default boolean isEqual(ChronoLocalDateTime<?> other)
Whether this is the same date and time as other.