Example usage for Java org.joda.time MutableDateTime fields, constructors, methods, implement or subclass
The text is from its open source code.
int | ROUND_NONE Rounding is disabled |
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. |
void | add(ReadableDuration duration, int scalar) Adds a duration to this instant specifying how many times to add. |
void | add(ReadablePeriod period, int scalar) Adds a period to this instant specifying how many times to add. |
void | add(DurationFieldType type, int amount) Adds to the instant specifying the duration and multiple to add. |
void | add(long duration) Add an amount of time to the datetime. |
void | add(ReadableDuration duration) Adds a duration to this instant. |
void | add(ReadablePeriod period) Adds a period to this instant. |
void | addDays(final int days) Add a number of days to the date. |
void | addHours(final int hours) Add a number of hours to the date. |
void | addMillis(final int millis) Add a number of milliseconds to the date. |
void | addMinutes(final int minutes) Add a number of minutes to the date. |
void | addMonths(final int months) Add a number of months to the date. |
void | addSeconds(final int seconds) Add a number of seconds to the date. |
void | addWeeks(final int weeks) Add a number of weeks to the date. |
void | addYears(final int years) Add a number of years to the date. |
MutableDateTime | copy() Clone this object without having to cast the returned object. |
Property | dayOfMonth() Get the day of month property. |
Property | dayOfWeek() Get the day of week property. |
Property | dayOfYear() Get the day of year property. |
int | get(DateTimeFieldType type) Get the value of one of the fields of a datetime. |
int | getDayOfMonth() Get the day of month field value. |
int | getDayOfWeek() Get the day of week field value. |
int | getDayOfYear() Get the day of year field value. |
int | getHourOfDay() Get the hour of day field value. |
long | getMillis() Gets the milliseconds of the datetime instant from the Java epoch of 1970-01-01T00:00:00Z. |
int | getMillisOfSecond() Get the millis of second field value. |
int | getMinuteOfHour() Get the minute of hour field value. |
int | getMonthOfYear() Get the month of year field value. |
int | getSecondOfMinute() Get the second of minute field value. |
int | getWeekyear() Get the weekyear field value. |
int | getYear() Get the year field value. |
Property | hourOfDay() Get the hour of day field property |
Property | millisOfDay() 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. |
Property | millisOfSecond() Get the millis of second property |
Property | minuteOfDay() Get the minute of day property Calling a setter on the property will replace the values of minute-of-hour and hour-of-day. |
Property | minuteOfHour() Get the minute of hour field property |
Property | monthOfYear() Get the month of year property. |
MutableDateTime | now(DateTimeZone zone) Obtains a MutableDateTime set to the current system millisecond time using ISOChronology in the specified time zone. |
MutableDateTime | now(Chronology chronology) Obtains a MutableDateTime set to the current system millisecond time using the specified chronology. |
MutableDateTime | now() Obtains a MutableDateTime set to the current system millisecond time using ISOChronology in the default time zone. |
MutableDateTime | parse(String str, DateTimeFormatter formatter) Parses a MutableDateTime from the specified string using a formatter. |
Property | secondOfDay() 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. |
Property | secondOfMinute() Get the second of minute field property |
void | set(DateTimeFieldType type, int value) Sets the value of one of the fields of the instant, such as hourOfDay. |
void | setDate(final int year, final int monthOfYear, final int dayOfMonth) Set the date from fields. |
void | setDate(final long instant) Set the date from milliseconds. |
void | setDate(final ReadableInstant instant) Set the date from another instant. |
void | setDateTime(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. |
void | setDayOfMonth(final int dayOfMonth) Set the day of the month to the specified value. |
void | setDayOfWeek(final int dayOfWeek) Set the day of week to the specified value. |
void | setDayOfYear(final int dayOfYear) Set the day of year to the specified value. |
void | setHourOfDay(final int hourOfDay) Set the hour of the day to the specified value. |
void | setMillis(long instant) Set the milliseconds of the datetime. |
void | setMillis(ReadableInstant instant) Sets the millisecond instant of this instant from another. |
void | setMillisOfDay(final int millisOfDay) Set the millis of the day to the specified value. |
void | setMillisOfSecond(final int millisOfSecond) Set the millis of the second to the specified value. |
void | setMinuteOfHour(final int minuteOfHour) Set the minute of the hour to the specified value. |
void | setMonthOfYear(final int monthOfYear) Set the month of the year to the specified value. |
void | setRounding(DateTimeField field) Sets the status of rounding to use the specified field and ROUND_FLOOR mode. |
void | setSecondOfMinute(final int secondOfMinute) Set the second of the minute to the specified value. |
void | setTime(final long millis) Set the time from milliseconds. |
void | setTime(final ReadableInstant instant) Set the time from another instant. |
void | setTime(final int hour, final int minuteOfHour, final int secondOfMinute, final int millisOfSecond) Set the time from fields. |
void | setWeekOfWeekyear(final int weekOfWeekyear) Set the week of weekyear to the specified value. |
void | setYear(final int year) Set the year to the specified value. |
void | setZone(DateTimeZone newZone) Sets the time zone of the datetime, changing the chronology and field values. |
void | setZoneRetainFields(DateTimeZone newZone) Sets the time zone of the datetime, changing the chronology and millisecond. |
DateTime | toDateTime() Get this object as a DateTime. |
String | toString() Output the date time in ISO8601 format (yyyy-MM-ddTHH:mm:ss.SSSZZ). |
String | toString(String pattern) Output the instant using the specified format pattern. |
Property | weekOfWeekyear() Get the week of a week based year property. |
Property | yearOfCentury() Get the year of century property. |