public class DateTime extends AbstractInstant implements Date, Time, Serializable
calendar, datatypeFactory, locale
Constructor and Description |
---|
DateTime() |
DateTime(Calendar calendar) |
DateTime(Calendar calendar,
Locale locale) |
DateTime(Date date) |
DateTime(String iso8601String) |
DateTime(String dateString,
String format) |
DateTime(XMLGregorianCalendar xmlCalendar) |
Modifier and Type | Method and Description |
---|---|
DateTime |
changeTimeZone(String newTimezone) |
Date |
getDate() |
int |
getDayOfMonth() |
int |
getDayOfWeek() |
int |
getDayOfYear() |
int |
getHours() |
long |
getMilliSeconds() |
int |
getMinutes() |
int |
getMonth() |
int |
getSeconds() |
Time |
getTime() |
int |
getWeekOfMonth() |
int |
getWeekOfYear() |
int |
getYear() |
DateTime |
plusDays(int add) |
DateTime |
plusHours(int add) |
DateTime |
plusMilliSeconds(int add) |
DateTime |
plusMinutes(int add) |
DateTime |
plusMonths(int add) |
DateTime |
plusSeconds(int add) |
DateTime |
plusWeeks(int add) |
DateTime |
plusYears(int add) |
String |
toString() |
DateTime |
withLocale(String locale) |
DateTime |
withTimeZone(String newTimezone) |
equals, format, format, getTimeZone, isAfter, isBefore, toCalendar, toDate, toXMLCalendar
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
format, format, getTimeZone, isAfter, isBefore, toCalendar, toDate, toXMLCalendar
public DateTime()
public DateTime(Calendar calendar)
public DateTime(Date date)
public DateTime(XMLGregorianCalendar xmlCalendar)
public DateTime(String iso8601String)
public DateTime(String dateString, String format) throws ParseException
ParseException
public int getDayOfWeek()
getDayOfWeek
in interface Date
public int getDayOfMonth()
getDayOfMonth
in interface Date
public int getDayOfYear()
getDayOfYear
in interface Date
public int getWeekOfMonth()
getWeekOfMonth
in interface Date
public int getWeekOfYear()
getWeekOfYear
in interface Date
public DateTime plusMonths(int add)
plusMonths
in interface Date
public DateTime plusMilliSeconds(int add)
plusMilliSeconds
in interface Time
public DateTime plusSeconds(int add)
plusSeconds
in interface Time
public DateTime plusMinutes(int add)
plusMinutes
in interface Time
public long getMilliSeconds()
getMilliSeconds
in interface Time
public int getSeconds()
getSeconds
in interface Time
public int getMinutes()
getMinutes
in interface Time
public DateTime withLocale(String locale)
withLocale
in interface Date
withLocale
in interface Instant
withLocale
in interface Time
withLocale
in class AbstractInstant
public DateTime withTimeZone(String newTimezone)
withTimeZone
in interface Date
withTimeZone
in interface Instant
withTimeZone
in interface Time
withTimeZone
in class AbstractInstant
public DateTime changeTimeZone(String newTimezone)
changeTimeZone
in interface Date
changeTimeZone
in interface Instant
changeTimeZone
in interface Time
changeTimeZone
in class AbstractInstant
public Date getDate()
public Time getTime()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.