| 
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use DateTime | |
|---|---|
| org.joda.time | Provides support for dates, times, time zones, durations, intervals, and partials. | 
| org.joda.time.base | Implementation package providing abstract and base time classes. | 
| org.joda.time.chrono | Package containing the chronology classes which define the calendar systems. | 
| org.joda.time.format | Provides printing and parsing support for instants and durations. | 
| Uses of DateTime in org.joda.time | 
|---|
| Methods in org.joda.time that return DateTime | |
|---|---|
 DateTime | 
DateTime.Property.addToCopy(int value)
Adds to this field in a copy of this DateTime.  | 
 DateTime | 
DateTime.Property.addToCopy(long value)
Adds to this field in a copy of this DateTime.  | 
 DateTime | 
DateTime.Property.addWrapFieldToCopy(int value)
Adds to this field, possibly wrapped, in a copy of this DateTime.  | 
 DateTime | 
DateTime.Property.getDateTime()
Gets the datetime being used.  | 
 DateTime | 
ReadableInterval.getEnd()
Gets the end of this time interval, which is exclusive, as a DateTime.  | 
 DateTime | 
ReadableInterval.getStart()
Gets the start of this time interval, which is inclusive, as a DateTime.  | 
 DateTime | 
DateTime.minus(long duration)
Returns a copy of this datetime with the specified duration taken away.  | 
 DateTime | 
DateTime.minus(ReadableDuration duration)
Returns a copy of this datetime with the specified duration taken away.  | 
 DateTime | 
DateTime.minus(ReadablePeriod period)
Returns a copy of this datetime with the specified period taken away.  | 
 DateTime | 
DateTime.minusDays(int days)
Returns a copy of this datetime minus the specified number of days.  | 
 DateTime | 
DateTime.minusHours(int hours)
Returns a copy of this datetime minus the specified number of hours.  | 
 DateTime | 
DateTime.minusMillis(int millis)
Returns a copy of this datetime minus the specified number of millis.  | 
 DateTime | 
DateTime.minusMinutes(int minutes)
Returns a copy of this datetime minus the specified number of minutes.  | 
 DateTime | 
DateTime.minusMonths(int months)
Returns a copy of this datetime minus the specified number of months.  | 
 DateTime | 
DateTime.minusSeconds(int seconds)
Returns a copy of this datetime minus the specified number of seconds.  | 
 DateTime | 
DateTime.minusWeeks(int weeks)
Returns a copy of this datetime minus the specified number of weeks.  | 
 DateTime | 
DateTime.minusYears(int years)
Returns a copy of this datetime minus the specified number of years.  | 
static DateTime | 
DateTime.now()
Obtains a DateTime set to the current system millisecond time
 using ISOChronology in the default time zone. | 
static DateTime | 
DateTime.now(Chronology chronology)
Obtains a DateTime set to the current system millisecond time
 using the specified chronology. | 
static DateTime | 
DateTime.now(DateTimeZone zone)
Obtains a DateTime set to the current system millisecond time
 using ISOChronology in the specified time zone. | 
static DateTime | 
DateTime.parse(String str)
Parses a DateTime from the specified string. | 
static DateTime | 
DateTime.parse(String str,
      DateTimeFormatter formatter)
Parses a DateTime from the specified string using a formatter. | 
 DateTime | 
DateTime.plus(long duration)
Returns a copy of this datetime with the specified duration added.  | 
 DateTime | 
DateTime.plus(ReadableDuration duration)
Returns a copy of this datetime with the specified duration added.  | 
 DateTime | 
DateTime.plus(ReadablePeriod period)
Returns a copy of this datetime with the specified period added.  | 
 DateTime | 
DateTime.plusDays(int days)
Returns a copy of this datetime plus the specified number of days.  | 
 DateTime | 
DateTime.plusHours(int hours)
Returns a copy of this datetime plus the specified number of hours.  | 
 DateTime | 
DateTime.plusMillis(int millis)
Returns a copy of this datetime plus the specified number of millis.  | 
 DateTime | 
DateTime.plusMinutes(int minutes)
Returns a copy of this datetime plus the specified number of minutes.  | 
 DateTime | 
DateTime.plusMonths(int months)
Returns a copy of this datetime plus the specified number of months.  | 
 DateTime | 
DateTime.plusSeconds(int seconds)
Returns a copy of this datetime plus the specified number of seconds.  | 
 DateTime | 
DateTime.plusWeeks(int weeks)
Returns a copy of this datetime plus the specified number of weeks.  | 
 DateTime | 
DateTime.plusYears(int years)
Returns a copy of this datetime plus the specified number of years.  | 
 DateTime | 
DateTime.Property.roundCeilingCopy()
Rounds to the highest whole unit of this field on a copy of this DateTime.  | 
 DateTime | 
DateTime.Property.roundFloorCopy()
Rounds to the lowest whole unit of this field on a copy of this DateTime.  | 
 DateTime | 
DateTime.Property.roundHalfCeilingCopy()
Rounds to the nearest whole unit of this field on a copy of this DateTime, favoring the ceiling if halfway.  | 
 DateTime | 
DateTime.Property.roundHalfEvenCopy()
Rounds to the nearest whole unit of this field on a copy of this DateTime.  | 
 DateTime | 
DateTime.Property.roundHalfFloorCopy()
Rounds to the nearest whole unit of this field on a copy of this DateTime, favoring the floor if halfway.  | 
 DateTime | 
DateTime.Property.setCopy(int value)
Sets this field in a copy of the DateTime.  | 
 DateTime | 
DateTime.Property.setCopy(String text)
Sets this field in a copy of the DateTime to a parsed text value.  | 
 DateTime | 
DateTime.Property.setCopy(String text,
        Locale locale)
Sets this field in a copy of the DateTime to a parsed text value.  | 
 DateTime | 
ReadableDateTime.toDateTime()
Get this object as a DateTime.  | 
 DateTime | 
LocalDateTime.toDateTime()
Converts this object to a DateTime using the default zone.  | 
 DateTime | 
Instant.toDateTime()
Get this object as a DateTime using ISOChronology in the default zone.  | 
 DateTime | 
DateTime.toDateTime()
Get this object as a DateTime by returning this. | 
 DateTime | 
DateTime.toDateTime(Chronology chronology)
Get this object as a DateTime, returning this if possible. | 
 DateTime | 
LocalDateTime.toDateTime(DateTimeZone zone)
Converts this object to a DateTime using the specified zone.  | 
 DateTime | 
DateTime.toDateTime(DateTimeZone zone)
Get this object as a DateTime, returning this if possible. | 
 DateTime | 
LocalDate.toDateTime(LocalTime time)
Converts this object to a DateTime using a LocalTime to fill in the missing fields and using the default time zone.  | 
 DateTime | 
LocalDate.toDateTime(LocalTime time,
           DateTimeZone zone)
Converts this object to a DateTime using a LocalTime to fill in the missing fields.  | 
 DateTime | 
ReadablePartial.toDateTime(ReadableInstant baseInstant)
Converts this partial to a full datetime by resolving it against another datetime.  | 
 DateTime | 
YearMonthDay.toDateTime(TimeOfDay time)
Deprecated. Converts this object to a DateTime using a TimeOfDay to fill in the missing fields and using the default time zone.  | 
 DateTime | 
YearMonthDay.toDateTime(TimeOfDay time,
           DateTimeZone zone)
Deprecated. Converts this object to a DateTime using a TimeOfDay to fill in the missing fields.  | 
 DateTime | 
YearMonthDay.toDateTimeAtCurrentTime()
Deprecated. Converts this partial to a full datetime using the default time zone setting the date fields from this instance and the time fields from the current time.  | 
 DateTime | 
LocalDate.toDateTimeAtCurrentTime()
Converts this LocalDate to a full datetime using the default time zone setting the date fields from this instance and the time fields from the current time.  | 
 DateTime | 
YearMonthDay.toDateTimeAtCurrentTime(DateTimeZone zone)
Deprecated. Converts this partial to a full datetime using the specified time zone setting the date fields from this instance and the time fields from the current time.  | 
 DateTime | 
LocalDate.toDateTimeAtCurrentTime(DateTimeZone zone)
Converts this LocalDate to a full datetime using the specified time zone setting the date fields from this instance and the time fields from the current time.  | 
 DateTime | 
YearMonthDay.toDateTimeAtMidnight()
Deprecated. Converts this YearMonthDay to a full datetime at midnight using the default time zone.  | 
 DateTime | 
LocalDate.toDateTimeAtMidnight()
Deprecated. Use LocalDate.toDateTimeAtStartOfDay() which won't throw an exception | 
 DateTime | 
YearMonthDay.toDateTimeAtMidnight(DateTimeZone zone)
Deprecated. Converts this YearMonthDay to a full datetime at midnight using the specified time zone.  | 
 DateTime | 
LocalDate.toDateTimeAtMidnight(DateTimeZone zone)
Deprecated. Use LocalDate.toDateTimeAtStartOfDay(DateTimeZone) which won't throw an exception | 
 DateTime | 
LocalDate.toDateTimeAtStartOfDay()
Converts this LocalDate to a full datetime at the earliest valid time for the date using the default time zone.  | 
 DateTime | 
LocalDate.toDateTimeAtStartOfDay(DateTimeZone zone)
Converts this LocalDate to a full datetime at the earliest valid time for the date using the specified time zone.  | 
 DateTime | 
Instant.toDateTimeISO()
Deprecated. Use toDateTime() as it is identical  | 
 DateTime | 
DateTime.toDateTimeISO()
Get this object as a DateTime using ISOChronology in the default zone, returning this if possible. | 
 DateTime | 
TimeOfDay.toDateTimeToday()
Deprecated. Converts this partial to a full datetime using the default time zone setting the time fields from this instance and the date fields from the current time.  | 
 DateTime | 
LocalTime.toDateTimeToday()
Converts this LocalTime to a full datetime using the default time zone setting the time fields from this instance and the date fields from the current date.  | 
 DateTime | 
TimeOfDay.toDateTimeToday(DateTimeZone zone)
Deprecated. Converts this partial to a full datetime using the specified time zone setting the time fields from this instance and the date fields from the current time.  | 
 DateTime | 
LocalTime.toDateTimeToday(DateTimeZone zone)
Converts this LocalTime to a full datetime using the specified time zone setting the time fields from this instance and the date fields from the current time.  | 
 DateTime | 
DateTime.withCenturyOfEra(int centuryOfEra)
Returns a copy of this datetime with the century of era field updated.  | 
 DateTime | 
DateTime.withChronology(Chronology newChronology)
Returns a copy of this datetime with a different chronology.  | 
 DateTime | 
DateTime.withDate(int year,
         int monthOfYear,
         int dayOfMonth)
Returns a copy of this datetime with the specified date, retaining the time fields.  | 
 DateTime | 
DateTime.withDate(LocalDate date)
Returns a copy of this datetime with the specified date, retaining the time fields.  | 
 DateTime | 
DateTime.withDayOfMonth(int dayOfMonth)
Returns a copy of this datetime with the day of month field updated.  | 
 DateTime | 
DateTime.withDayOfWeek(int dayOfWeek)
Returns a copy of this datetime with the day of week field updated.  | 
 DateTime | 
DateTime.withDayOfYear(int dayOfYear)
Returns a copy of this datetime with the day of year field updated.  | 
 DateTime | 
DateTime.withDurationAdded(long durationToAdd,
                  int scalar)
Returns a copy of this datetime with the specified duration added.  | 
 DateTime | 
DateTime.withDurationAdded(ReadableDuration durationToAdd,
                  int scalar)
Returns a copy of this datetime with the specified duration added.  | 
 DateTime | 
DateTime.withEarlierOffsetAtOverlap()
Returns a copy of this ZonedDateTime changing the zone offset to the earlier of the two valid offsets at a local time-line overlap.  | 
 DateTime | 
DateTime.withEra(int era)
Returns a copy of this datetime with the era field updated.  | 
 DateTime | 
DateTime.withField(DateTimeFieldType fieldType,
          int value)
Returns a copy of this datetime with the specified field set to a new value.  | 
 DateTime | 
DateTime.withFieldAdded(DurationFieldType fieldType,
               int amount)
Returns a copy of this datetime with the value of the specified field increased.  | 
 DateTime | 
DateTime.withFields(ReadablePartial partial)
Returns a copy of this datetime with the partial set of fields replacing those from this instance.  | 
 DateTime | 
DateTime.withHourOfDay(int hour)
Returns a copy of this datetime with the hour of day field updated.  | 
 DateTime | 
DateTime.withLaterOffsetAtOverlap()
Returns a copy of this ZonedDateTime changing the zone offset to the later of the two valid offsets at a local time-line overlap.  | 
 DateTime | 
DateTime.Property.withMaximumValue()
Returns a new DateTime with this field set to the maximum value for this field.  | 
 DateTime | 
DateTime.withMillis(long newMillis)
Returns a copy of this datetime with different millis.  | 
 DateTime | 
DateTime.withMillisOfDay(int millis)
Returns a copy of this datetime with the millis of day field updated.  | 
 DateTime | 
DateTime.withMillisOfSecond(int millis)
Returns a copy of this datetime with the millis of second field updated.  | 
 DateTime | 
DateTime.Property.withMinimumValue()
Returns a new DateTime with this field set to the minimum value for this field.  | 
 DateTime | 
DateTime.withMinuteOfHour(int minute)
Returns a copy of this datetime with the minute of hour updated.  | 
 DateTime | 
DateTime.withMonthOfYear(int monthOfYear)
Returns a copy of this datetime with the month of year field updated.  | 
 DateTime | 
DateTime.withPeriodAdded(ReadablePeriod period,
                int scalar)
Returns a copy of this datetime with the specified period added.  | 
 DateTime | 
DateTime.withSecondOfMinute(int second)
Returns a copy of this datetime with the second of minute field updated.  | 
 DateTime | 
DateTime.withTime(int hourOfDay,
         int minuteOfHour,
         int secondOfMinute,
         int millisOfSecond)
Returns a copy of this datetime with the specified time, retaining the date fields.  | 
 DateTime | 
DateTime.withTime(LocalTime time)
Returns a copy of this datetime with the specified time, retaining the date fields.  | 
 DateTime | 
DateTime.withTimeAtStartOfDay()
Returns a copy of this datetime with the time set to the start of the day.  | 
 DateTime | 
DateTime.withWeekOfWeekyear(int weekOfWeekyear)
Returns a copy of this datetime with the week of weekyear field updated.  | 
 DateTime | 
DateTime.withWeekyear(int weekyear)
Returns a copy of this datetime with the weekyear field updated.  | 
 DateTime | 
DateTime.withYear(int year)
Returns a copy of this datetime with the year field updated.  | 
 DateTime | 
DateTime.withYearOfCentury(int yearOfCentury)
Returns a copy of this datetime with the year of century field updated.  | 
 DateTime | 
DateTime.withYearOfEra(int yearOfEra)
Returns a copy of this datetime with the year of era field updated.  | 
 DateTime | 
DateTime.withZone(DateTimeZone newZone)
Returns a copy of this datetime with a different time zone, preserving the millisecond instant.  | 
 DateTime | 
DateTime.withZoneRetainFields(DateTimeZone newZone)
Returns a copy of this datetime with a different time zone, preserving the field values.  | 
| Uses of DateTime in org.joda.time.base | 
|---|
| Methods in org.joda.time.base that return DateTime | |
|---|---|
 DateTime | 
AbstractInterval.getEnd()
Gets the end of this time interval, which is exclusive, as a DateTime.  | 
 DateTime | 
AbstractInterval.getStart()
Gets the start of this time interval, which is inclusive, as a DateTime.  | 
 DateTime | 
AbstractInstant.toDateTime()
Get this object as a DateTime in the same zone.  | 
 DateTime | 
AbstractInstant.toDateTime(Chronology chronology)
Get this object as a DateTime using the given chronology and its zone.  | 
 DateTime | 
AbstractInstant.toDateTime(DateTimeZone zone)
Get this object as a DateTime using the same chronology but a different zone.  | 
 DateTime | 
AbstractPartial.toDateTime(ReadableInstant baseInstant)
Resolves this partial against another complete instant to create a new full instant.  | 
 DateTime | 
AbstractInstant.toDateTimeISO()
Get this object as a DateTime using ISOChronology in the same zone.  | 
| Uses of DateTime in org.joda.time.chrono | 
|---|
| Methods in org.joda.time.chrono that return DateTime | |
|---|---|
 DateTime | 
LimitChronology.getLowerLimit()
Returns the inclusive lower limit instant.  | 
 DateTime | 
LimitChronology.getUpperLimit()
Returns the inclusive upper limit instant.  | 
| Uses of DateTime in org.joda.time.format | 
|---|
| Methods in org.joda.time.format that return DateTime | |
|---|---|
 DateTime | 
DateTimeFormatter.parseDateTime(String text)
Parses a date-time from the given text, returning a new DateTime.  | 
  | 
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||