Uses of Class
org.joda.time.LocalDateTime
Packages that use LocalDateTime
Package
Description
Provides support for dates, times, time zones, durations, intervals, and
partials.
Provides printing and parsing support for instants and durations.
-
Uses of LocalDateTime in org.joda.time
Methods in org.joda.time that return LocalDateTimeModifier and TypeMethodDescriptionLocalDateTime.Property.addToCopy(int value) Adds to this field in a copy of this LocalDateTime.LocalDateTime.Property.addToCopy(long value) Adds to this field in a copy of this LocalDateTime.LocalDateTime.Property.addWrapFieldToCopy(int value) Adds to this field, possibly wrapped, in a copy of this LocalDateTime.static LocalDateTimeLocalDateTime.fromCalendarFields(Calendar calendar) Constructs a LocalDateTime from ajava.util.Calendarusing exactly the same field values.static LocalDateTimeLocalDateTime.fromDateFields(Date date) Constructs a LocalDateTime from ajava.util.Dateusing exactly the same field values.LocalDateTime.Property.getLocalDateTime()Gets the LocalDateTime object linked to this property.LocalDateTime.minus(ReadableDuration duration) Returns a copy of this datetime with the specified duration taken away.LocalDateTime.minus(ReadablePeriod period) Returns a copy of this datetime with the specified period taken away.LocalDateTime.minusDays(int days) Returns a copy of this datetime minus the specified number of days.LocalDateTime.minusHours(int hours) Returns a copy of this datetime minus the specified number of hours.LocalDateTime.minusMillis(int millis) Returns a copy of this datetime minus the specified number of millis.LocalDateTime.minusMinutes(int minutes) Returns a copy of this datetime minus the specified number of minutes.LocalDateTime.minusMonths(int months) Returns a copy of this datetime minus the specified number of months.LocalDateTime.minusSeconds(int seconds) Returns a copy of this datetime minus the specified number of seconds.LocalDateTime.minusWeeks(int weeks) Returns a copy of this datetime minus the specified number of weeks.LocalDateTime.minusYears(int years) Returns a copy of this datetime minus the specified number of years.static LocalDateTimeLocalDateTime.now()Obtains aLocalDateTimeset to the current system millisecond time usingISOChronologyin the default time zone.static LocalDateTimeLocalDateTime.now(Chronology chronology) Obtains aLocalDateTimeset to the current system millisecond time using the specified chronology.static LocalDateTimeLocalDateTime.now(DateTimeZone zone) Obtains aLocalDateTimeset to the current system millisecond time usingISOChronologyin the specified time zone.static LocalDateTimeParses aLocalDateTimefrom the specified string.static LocalDateTimeLocalDateTime.parse(String str, DateTimeFormatter formatter) Parses aLocalDateTimefrom the specified string using a formatter.LocalDateTime.plus(ReadableDuration duration) Returns a copy of this datetime with the specified duration added.LocalDateTime.plus(ReadablePeriod period) Returns a copy of this datetime with the specified period added.LocalDateTime.plusDays(int days) Returns a copy of this datetime plus the specified number of days.LocalDateTime.plusHours(int hours) Returns a copy of this datetime plus the specified number of hours.LocalDateTime.plusMillis(int millis) Returns a copy of this datetime plus the specified number of millis.LocalDateTime.plusMinutes(int minutes) Returns a copy of this datetime plus the specified number of minutes.LocalDateTime.plusMonths(int months) Returns a copy of this datetime plus the specified number of months.LocalDateTime.plusSeconds(int seconds) Returns a copy of this datetime plus the specified number of seconds.LocalDateTime.plusWeeks(int weeks) Returns a copy of this datetime plus the specified number of weeks.LocalDateTime.plusYears(int years) Returns a copy of this datetime plus the specified number of years.LocalDateTime.Property.roundCeilingCopy()Rounds to the highest whole unit of this field on a copy of this LocalDateTime.LocalDateTime.Property.roundFloorCopy()Rounds to the lowest whole unit of this field on a copy of this LocalDateTime.LocalDateTime.Property.roundHalfCeilingCopy()Rounds to the nearest whole unit of this field on a copy of this LocalDateTime, favoring the ceiling if halfway.LocalDateTime.Property.roundHalfEvenCopy()Rounds to the nearest whole unit of this field on a copy of this LocalDateTime.LocalDateTime.Property.roundHalfFloorCopy()Rounds to the nearest whole unit of this field on a copy of this LocalDateTime, favoring the floor if halfway.LocalDateTime.Property.setCopy(int value) Sets this field in a copy of the LocalDateTime.Sets this field in a copy of the LocalDateTime to a parsed text value.Sets this field in a copy of the LocalDateTime to a parsed text value.DateTime.toLocalDateTime()Converts this object to aLocalDateTimewith the same datetime and chronology.LocalDate.toLocalDateTime(LocalTime time) Converts this object to a LocalDateTime using a LocalTime to fill in the missing fields.LocalDateTime.withCenturyOfEra(int centuryOfEra) Returns a copy of this datetime with the century of era field updated.LocalDateTime.withDate(int year, int monthOfYear, int dayOfMonth) Returns a copy of this datetime with the specified date, retaining the time fields.LocalDateTime.withDayOfMonth(int dayOfMonth) Returns a copy of this datetime with the day of month field updated.LocalDateTime.withDayOfWeek(int dayOfWeek) Returns a copy of this datetime with the day of week field updated.LocalDateTime.withDayOfYear(int dayOfYear) Returns a copy of this datetime with the day of year field updated.LocalDateTime.withDurationAdded(ReadableDuration durationToAdd, int scalar) Returns a copy of this datetime with the specified duration added.LocalDateTime.withEra(int era) Returns a copy of this datetime with the era field updated.LocalDateTime.withField(DateTimeFieldType fieldType, int value) Returns a copy of this datetime with the specified field set to a new value.LocalDateTime.withFieldAdded(DurationFieldType fieldType, int amount) Returns a copy of this datetime with the value of the specified field increased.LocalDateTime.withFields(ReadablePartial partial) Returns a copy of this datetime with the partial set of fields replacing those from this instance.LocalDateTime.withHourOfDay(int hour) Returns a copy of this datetime with the hour of day field updated.LocalDateTime.Property.withMaximumValue()Returns a new LocalDateTime with this field set to the maximum value for this field.LocalDateTime.withMillisOfDay(int millis) Returns a copy of this datetime with the millis of day field updated.LocalDateTime.withMillisOfSecond(int millis) Returns a copy of this datetime with the millis of second field updated.LocalDateTime.Property.withMinimumValue()Returns a new LocalDateTime with this field set to the minimum value for this field.LocalDateTime.withMinuteOfHour(int minute) Returns a copy of this datetime with the minute of hour field updated.LocalDateTime.withMonthOfYear(int monthOfYear) Returns a copy of this datetime with the month of year field updated.LocalDateTime.withPeriodAdded(ReadablePeriod period, int scalar) Returns a copy of this datetime with the specified period added.LocalDateTime.withSecondOfMinute(int second) Returns a copy of this datetime with the second of minute field updated.LocalDateTime.withTime(int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond) Returns a copy of this datetime with the specified time, retaining the date fields.LocalDateTime.withWeekOfWeekyear(int weekOfWeekyear) Returns a copy of this datetime with the week of weekyear field updated.LocalDateTime.withWeekyear(int weekyear) Returns a copy of this datetime with the weekyear field updated.LocalDateTime.withYear(int year) Returns a copy of this datetime with the year field updated.LocalDateTime.withYearOfCentury(int yearOfCentury) Returns a copy of this datetime with the year of century field updated.LocalDateTime.withYearOfEra(int yearOfEra) Returns a copy of this datetime with the year of era field updated.Methods in org.joda.time with parameters of type LocalDateTimeModifier and TypeMethodDescriptionbooleanDateTimeZone.isLocalDateTimeGap(LocalDateTime localDateTime) Checks if the givenLocalDateTimeis within a gap. -
Uses of LocalDateTime in org.joda.time.format
Methods in org.joda.time.format that return LocalDateTimeModifier and TypeMethodDescriptionDateTimeFormatter.parseLocalDateTime(String text) Parses only the local date-time from the given text, returning a new LocalDateTime.