adjustInto(Temporal temporal) |
This method adjusts the specified temporal object to have the same offset, date and time as this object. |
atZoneSameInstant(ZoneId zone) |
This method combines this date-time with a time-zone to create a ZonedDateTime ensuring that the result has the same instant. |
atZoneSimilarLocal(ZoneId zone) |
This method combines this date-time with a time-zone to create a ZonedDateTime trying to keep the same local date and time. |
compareTo(OffsetDateTime other) |
This method compares this date-time to another date-time. |
equals(Object obj) |
It is used to checks if this date-time is equal to another date-time. |
getMonth() |
It is a method that is used to display the current month. |
now() |
It is a method used to obtain the current date and time from the system clock. |
getYear() |
It is a method that is used to display the current Year. |
getDayOfWeek() |
It is a method that is used to display the current day of the week. |
getHour() |
It is a method that is used to display a specific hour. |
getMinute() |
It is a method that is used to display a specific minute. |
getNano() |
It is a method that displays a specific nanosecond. |
getSecond() |
It is a method that displays a specific second. |
equals(Object obj) |
This method checks if this date-time is equal to another date-time. |
format(DateTimeFormatter formatter) |
This method formats this date-time using the specified formatter. |
from(TemporalAccessor temporal) |
This method obtains an instance of OffsetDateTime from a temporal object. |
get(TemporalField field) |
This method gets the value of the specified field from this date-time as an int. |
hashCode() |
A hash code for this date-time. |
isAfter(OffsetDateTime other) |
This method checks if the instant of this date-time is after that of the specified date-time. |
isBefore(OffsetDateTime other) |
This method checks if the instant of this date-time is before that of the specified date-time. |
isEqual(OffsetDateTime other) |
This method checks if the instant of this date-time is equal to that of the specified date-time. |
isSupported(TemporalField field) |
This method checks if the specified field is supported. |
isSupported(TemporalUnit unit) |
This method checks if the specified unit is supported. |
withMinute(int minute) |
This method returns a copy of this OffsetDateTime with the minute-of-hour altered. |
withYear(int year) |
This method returns a copy of this OffsetDateTime with the year altered. |
minusDays(long days) |
This method returns a copy of this OffsetDateTime with the specified number of days subtracted. |
minusHours(long hours) |
This method returns a copy of this OffsetDateTime with the specified number of hours subtracted. |
minusMinutes(long minutes) |
This method returns a copy of this OffsetDateTime with the specified number of minutes subtracted. |
minusMonths(long months) |
This method returns a copy of this OffsetDateTime with the specified number of months subtracted. |
minusNanos(long nanos) |
This method returns a copy of this OffsetDateTime with the specified number of nanoseconds subtracted. |
minusSeconds(long seconds) |
This method returns a copy of this OffsetDateTime with the specified number of seconds subtracted. |
minusWeeks(long weeks) |
This method returns a copy of this OffsetDateTime with the specified number of weeks subtracted. |
minusYears(long years) |
This method returns a copy of this OffsetDateTime with the specified number of years subtracted. |
range(TemporalField field) |
This method gets the range of valid values for the specified field. |
timeLineOrder() |
This method gets a comparator that compares two OffsetDateTime instances based solely on the instant. |