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

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

Introduction

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

The text is from its open source code.

Subclass

org.joda.time.MutableDateTime has subclasses.
Click this link to see all its subclasses.

Field

intROUND_NONE
Rounding is disabled

Constructor

MutableDateTime()
Constructs an instance set to the current system millisecond time using ISOChronology in the default time zone.
MutableDateTime(long instant, DateTimeZone zone)
Constructs an instance set to the milliseconds from 1970-01-01T00:00:00Z using ISOChronology in the specified time zone.
MutableDateTime(long instant, Chronology chronology)
Constructs an instance set to the milliseconds from 1970-01-01T00:00:00Z using the specified chronology.
MutableDateTime(Object instant, DateTimeZone zone)
Constructs an instance from an Object that represents a datetime, forcing the time zone to that specified.
MutableDateTime(Object instant, Chronology chronology)
Constructs an instance from an Object that represents a datetime, using the specified chronology.
MutableDateTime(DateTimeZone zone)
Constructs an instance set to the current system millisecond time using ISOChronology in the specified time zone.
MutableDateTime(Chronology chronology)
Constructs an instance set to the current system millisecond time using the specified chronology.
MutableDateTime(long instant)
Constructs an instance set to the milliseconds from 1970-01-01T00:00:00Z using ISOChronology in the default time zone.
MutableDateTime(Object instant)
Constructs an instance from an Object that represents a datetime.
MutableDateTime(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond)
Constructs an instance from datetime field values using ISOChronology in the default time zone.
MutableDateTime(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond, DateTimeZone zone)
Constructs an instance from datetime field values using ISOChronology in the specified time zone.
MutableDateTime(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisOfSecond, Chronology chronology)
Constructs an instance from datetime field values using the specified chronology.

Method

voidadd(ReadableDuration duration, int scalar)
Adds a duration to this instant specifying how many times to add.
voidadd(ReadablePeriod period, int scalar)
Adds a period to this instant specifying how many times to add.
voidadd(DurationFieldType type, int amount)
Adds to the instant specifying the duration and multiple to add.
voidadd(long duration)
Add an amount of time to the datetime.
voidadd(ReadableDuration duration)
Adds a duration to this instant.
voidadd(ReadablePeriod period)
Adds a period to this instant.
voidaddDays(final int days)
Add a number of days to the date.
voidaddHours(final int hours)
Add a number of hours to the date.
voidaddMillis(final int millis)
Add a number of milliseconds to the date.
voidaddMinutes(final int minutes)
Add a number of minutes to the date.
voidaddMonths(final int months)
Add a number of months to the date.
voidaddSeconds(final int seconds)
Add a number of seconds to the date.
voidaddWeeks(final int weeks)
Add a number of weeks to the date.
voidaddYears(final int years)
Add a number of years to the date.
MutableDateTimecopy()
Clone this object without having to cast the returned object.
PropertydayOfMonth()
Get the day of month property.
PropertydayOfWeek()
Get the day of week property.
PropertydayOfYear()
Get the day of year property.
intget(DateTimeFieldType type)
Get the value of one of the fields of a datetime.
intgetDayOfMonth()
Get the day of month field value.
intgetDayOfWeek()
Get the day of week field value.
intgetDayOfYear()
Get the day of year field value.
intgetHourOfDay()
Get the hour of day field value.
longgetMillis()
Gets the milliseconds of the datetime instant from the Java epoch of 1970-01-01T00:00:00Z.
intgetMillisOfSecond()
Get the millis of second field value.
intgetMinuteOfHour()
Get the minute of hour field value.
intgetMonthOfYear()
Get the month of year field value.
intgetSecondOfMinute()
Get the second of minute field value.
intgetWeekyear()
Get the weekyear field value.
intgetYear()
Get the year field value.
PropertyhourOfDay()
Get the hour of day field property
PropertymillisOfDay()
Get the millis of day property

Calling a setter on the property will replace the values of milli-of-second, second-of-minute, minute-of-hour and hour-of-day.

PropertymillisOfSecond()
Get the millis of second property
PropertyminuteOfDay()
Get the minute of day property

Calling a setter on the property will replace the values of minute-of-hour and hour-of-day.

PropertyminuteOfHour()
Get the minute of hour field property
PropertymonthOfYear()
Get the month of year property.
MutableDateTimenow(DateTimeZone zone)
Obtains a MutableDateTime set to the current system millisecond time using ISOChronology in the specified time zone.
MutableDateTimenow(Chronology chronology)
Obtains a MutableDateTime set to the current system millisecond time using the specified chronology.
MutableDateTimenow()
Obtains a MutableDateTime set to the current system millisecond time using ISOChronology in the default time zone.
MutableDateTimeparse(String str, DateTimeFormatter formatter)
Parses a MutableDateTime from the specified string using a formatter.
PropertysecondOfDay()
Get the second of day property

Calling a setter on the property will replace the values of second-of-minute, minute-of-hour and hour-of-day.

PropertysecondOfMinute()
Get the second of minute field property
voidset(DateTimeFieldType type, int value)
Sets the value of one of the fields of the instant, such as hourOfDay.
voidsetDate(final int year, final int monthOfYear, final int dayOfMonth)
Set the date from fields.
voidsetDate(final long instant)
Set the date from milliseconds.
voidsetDate(final ReadableInstant instant)
Set the date from another instant.
voidsetDateTime(final int year, final int monthOfYear, final int dayOfMonth, final int hourOfDay, final int minuteOfHour, final int secondOfMinute, final int millisOfSecond)
Set the date and time from fields.
voidsetDayOfMonth(final int dayOfMonth)
Set the day of the month to the specified value.
voidsetDayOfWeek(final int dayOfWeek)
Set the day of week to the specified value.
voidsetDayOfYear(final int dayOfYear)
Set the day of year to the specified value.
voidsetHourOfDay(final int hourOfDay)
Set the hour of the day to the specified value.
voidsetMillis(long instant)
Set the milliseconds of the datetime.
voidsetMillis(ReadableInstant instant)
Sets the millisecond instant of this instant from another.
voidsetMillisOfDay(final int millisOfDay)
Set the millis of the day to the specified value.
voidsetMillisOfSecond(final int millisOfSecond)
Set the millis of the second to the specified value.
voidsetMinuteOfHour(final int minuteOfHour)
Set the minute of the hour to the specified value.
voidsetMonthOfYear(final int monthOfYear)
Set the month of the year to the specified value.
voidsetRounding(DateTimeField field)
Sets the status of rounding to use the specified field and ROUND_FLOOR mode.
voidsetSecondOfMinute(final int secondOfMinute)
Set the second of the minute to the specified value.
voidsetTime(final long millis)
Set the time from milliseconds.
voidsetTime(final ReadableInstant instant)
Set the time from another instant.
voidsetTime(final int hour, final int minuteOfHour, final int secondOfMinute, final int millisOfSecond)
Set the time from fields.
voidsetWeekOfWeekyear(final int weekOfWeekyear)
Set the week of weekyear to the specified value.
voidsetYear(final int year)
Set the year to the specified value.
voidsetZone(DateTimeZone newZone)
Sets the time zone of the datetime, changing the chronology and field values.
voidsetZoneRetainFields(DateTimeZone newZone)
Sets the time zone of the datetime, changing the chronology and millisecond.
DateTimetoDateTime()
Get this object as a DateTime.
StringtoString()
Output the date time in ISO8601 format (yyyy-MM-ddTHH:mm:ss.SSSZZ).
StringtoString(String pattern)
Output the instant using the specified format pattern.
PropertyweekOfWeekyear()
Get the week of a week based year property.
PropertyyearOfCentury()
Get the year of century property.