Klasse CalendarAwareDate
- Alle implementierten Schnittstellen:
de.uplanet.lucy.server.dataobjects.IDateTimeValueHolder,IValueHolder<Date>,Serializable,Cloneable,Comparable<Date>
java.sql.Timestamp and a
de.uplanet.lucy.server.dataobjects.IDateTimeValueHolder
for Velocity scripting. It supports date-time-arithmetics through an
aggregated gregorian calendar.
For the user's convenience, methods that modify the underlying date
value come in two flavours. One that does not return a value, and one
with the same name plus an R-suffix that returns the object
itself.
- Siehe auch:
-
Feldübersicht
Felder -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCalendarAwareDate(long p_lTime, Calendar p_cal) Create a calendar-aware date.CalendarAwareDate(Timestamp p_ts, Calendar p_cal) Create a calendar-aware date.CalendarAwareDate(Date p_dt, Calendar p_cal) Create a calendar-aware date. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddDays(int p_iDays) Add to this date.voidaddDays(int p_iDays, int p_iHours) Add to this date.voidaddDays(int p_iDays, int p_iHours, int p_iMinutes) Add to this date.voidaddDays(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds) Add to this date.voidaddDays(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Add to this date.addDaysR(int p_iDays) Add to this date.addDaysR(int p_iDays, int p_iHours) Add to this date.addDaysR(int p_iDays, int p_iHours, int p_iMinutes) Add to this date.addDaysR(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds) Add to this date.addDaysR(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Add to this date.voidaddMilliseconds(long p_lMilliseconds) Add the given number of milliseconds to the underlying value that represents this instance in time.addMillisecondsR(long p_lMilliseconds) Same asaddMilliseconds(long)but returns this object.voidaddMonths(int p_iMonths) Add to this date.addMonthsR(int p_iMonths) Same asaddMonths(int)but returns this object.voidaddUTCDays(int p_iDays) Add to this date.voidaddUTCDays(int p_iDays, int p_iHours) Add to this date.voidaddUTCDays(int p_iDays, int p_iHours, int p_iMinutes) Add to this date.voidaddUTCDays(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds) Add to this date.voidaddUTCDays(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Add to this date.addUTCDaysR(int p_iDays) Add to this date.addUTCDaysR(int p_iDays, int p_iHours) Add to this date.addUTCDaysR(int p_iDays, int p_iHours, int p_iMinutes) Add to this date.addUTCDaysR(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds) Add to this date.addUTCDaysR(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Add to this date.voidaddUTCMonths(int p_iMonths) Add to this date.addUTCMonthsR(int p_iMonths) Add to this date.voidaddUTCYears(int p_iYears) Add to this date.addUTCYearsR(int p_iYears) Add to this date.voidaddYears(int p_iYears) Add to this date.addYearsR(int p_iYears) Same asaddYears(int)but returns this object.asTime()Get the current time, i.e. the instance in time with its date set to zero 1970-01-01 in the UTC time zone.clone()Format this date using the given simple date format in the given time zone.Format this date using the given simple date format in the given time zone.Format this date using the given simple date format in the UTC time zone.Format this date using the given simple date format in the UTC time zone.Get the canonical lexical representation of this value according to it's datatype.intgetDay()Veraltet.intgetDayEs()Get the day of week as specified in ECMA-262 (ECMAScript Language Specification).intGet the (1-based) day of month, as interpreted in the given time zone.intGet the (1-based) day of week, as interpreted in the given time zone.intGet the year, as interpreted in the given time zone.intgetHours()Get the hour of day, as interpreted in the given time zone.intGet the milliseconds, as interpreted in the given time zone.intGet the minute, as interpreted in the given time zone.intgetMonth()Get the (0-based) month, as interpreted in the given time zone.Get the raw data that this value holder holds.intGet the seconds, as interpreted in the given time zone.getType()The type of data this value holder holds.intGet the (1-based) day of month, as interpreted in the UTC time zone.intGet the day of week as specified in ECMA-262 (ECMAScript Language Specification), interpreted in the UTC time zone.intGet the (1-based) day of month, as interpreted in the UTC time zone.intGet the (1-based) day of week, as interpreted in the UTC time zone.intGet the year, as interpreted in the UTC time zone.intGet the hour of day, as interpreted in the UTC time zone.intGet the milliseconds, as interpreted in the UTC time zone.intGet the minute, as interpreted in the UTC time zone.intGet the (0-based) month, as interpreted in the UTC time zone.intGet the seconds, as interpreted in the UTC time zone.getValue()Get the data that this value holder holds.intgetYear()Veraltet.booleanhasValue()Check if this value holder currently holds data or not.booleanisFriday()booleanisMonday()booleanbooleanisSunday()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidModify this date according to the rules specified in thep_strRulesparameter in the given time zone.voidModify this date according to the rules specified in thep_strRulesparameter in the given time zone.Same asmodify(String)but returns this object.Same asmodify(String, boolean)but returns this object.voidModify this date according to the rules specified in thep_strRulesparameter in the UTC time zone.voidModify this date according to the rules specified in thep_strRulesparameter in the given time zone.modifyUTCR(String p_strRules) Same asmodifyUTC(String)but returns this object.modifyUTCR(String p_strRules, boolean p_bClearMillis) Same asmodifyUTC(String, boolean)but returns this object.voidsetDayOfMonth(int p_iDay) Set the (1-based) day of month, as interpreted in the given time zone.setDayOfMonthR(int p_iDay) Same assetDayOfMonth(int)but returns this object.voidsetFullYear(int p_iYear) Set the year, as interpreted in the given time zone.voidsetFullYear(int p_iYear, int p_iMonth) Set the year, and month, as interpreted in the given time zone.voidsetFullYear(int p_iYear, int p_iMonth, int p_iDay) Set the year, month, and day, as interpreted in the given time zone.setFullYearR(int p_iYear) Same assetFullYear(int)but returns this object.setFullYearR(int p_iYear, int p_iMonth) Same assetFullYear(int, int)but returns this object.setFullYearR(int p_iYear, int p_iMonth, int p_iDay) Same assetFullYear(int, int, int)but returns this object.voidsetHours(int p_iHours) Set the hour of day, as interpreted in the given time zone.voidsetHours(int p_iHours, int p_iMinutes) Set the hour, and minute, as interpreted in the given time zone.voidsetHours(int p_iHours, int p_iMinutes, int p_iSeconds) Set the hour, minute, and second, as interpreted in the given time zone.voidsetHours(int p_iHours, int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Set the hour, minute, second, and milliseconds, as interpreted in the given time zone.setHoursR(int p_iHours) Same assetHours(int)but returns this object.setHoursR(int p_iHours, int p_iMinutes) Same assetHours(int, int)but returns this object.setHoursR(int p_iHours, int p_iMinutes, int p_iSeconds) Same assetHours(int, int, int)but returns this object.setHoursR(int p_iHours, int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Same assetHours(int, int, int, int)but returns this object.voidsetMilliseconds(int p_iMilliseconds) Set the milliseconds, as interpreted in the given time zone.setMillisecondsR(int p_iMilliseconds) Same assetMilliseconds(int)but returns this object.voidsetMinutes(int p_iMinutes) Set the minute, as interpreted in the given time zone.voidsetMinutes(int p_iMinutes, int p_iSeconds) Set the minute, and second, as interpreted in the given time zone.voidsetMinutes(int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Set the minute, second, and milliseconds, as interpreted in the given time zone.setMinutesR(int p_iMinutes) Same assetMinutes(int)but returns this object.setMinutesR(int p_iMinutes, int p_iSeconds) Same assetMinutes(int, int)but returns this object.setMinutesR(int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Same assetMinutes(int, int, int)but returns this object.voidsetMonth(int p_iMonth) Set the month, and day, as interpreted in the given time zone.voidsetMonth(int p_iMonth, int p_iDay) Set the month, and day, as interpreted in the given time zone.setMonthR(int p_iMonth) Same assetMonth(int)but returns this object.setMonthR(int p_iMonth, int p_iDay) Same assetMonth(int, int)but returns this object.voidsetSeconds(int p_iSeconds) Set the seconds, as interpreted in the given time zone.voidsetSeconds(int p_iSeconds, int p_iMilliseconds) Set the second, and milliseconds, as interpreted in the given time zone.setSecondsR(int p_iSeconds) Same assetSeconds(int)but returns this object.setSecondsR(int p_iSeconds, int p_iMilliseconds) Same assetSeconds(int, int)but returns this object.voidSet this date to the begin of day, as interpreted in the given time zone.Same assetToBeginOfDay()but returns this object.voidSet this date to the end of day, as interpreted in the given time zone.Same assetToEndOfDay()but returns this object.voidsetToStartOfWeek(int p_iFirstDayOfWeek) Set this date to the start of the week, as interpreted in the given time zone.setToStartOfWeekR(int p_iFirstDayOfWeek) Same assetToStartOfWeek(int)but returns this object.voidsetUTCDate(int p_iDay) Set the (1-based) day of month, as interpreted in the UTC time zone.setUTCDateR(int p_iDay) Same assetUTCDate(int)but returns this object.voidsetUTCDayOfMonth(int p_iDay) Set the (1-based) day of month, as interpreted in the UTC time zone.setUTCDayOfMonthR(int p_iDay) Same assetUTCDayOfMonth(int)but returns this object.voidsetUTCFullYear(int p_iYear) Set the year, as interpreted in the UTC time zone.voidsetUTCFullYear(int p_iYear, int p_iMonth) Set the year, and month, as interpreted in the UTC time zone.voidsetUTCFullYear(int p_iYear, int p_iMonth, int p_iDay) Set the year, month, and day, as interpreted in the UTC time zone.setUTCFullYearR(int p_iYear) Same assetUTCFullYear(int)but returns this object.setUTCFullYearR(int p_iYear, int p_iMonth) Same assetUTCFullYear(int, int)but returns this object.setUTCFullYearR(int p_iYear, int p_iMonth, int p_iDay) Same assetUTCFullYear(int, int, int)but returns this object.voidsetUTCHours(int p_iHours) Set the hour of day, as interpreted in the UTC time zone.voidsetUTCHours(int p_iHours, int p_iMinutes) Set the hour, and minute, as interpreted in the UTC time zone.voidsetUTCHours(int p_iHours, int p_iMinutes, int p_iSeconds) Set the hour, minute, and second, as interpreted in the UTC time zone.voidsetUTCHours(int p_iHours, int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Set the hour, minute, and second, as interpreted in the UTC time zone.setUTCHoursR(int p_iHours) Same assetUTCHours(int)but returns this object.setUTCHoursR(int p_iHours, int p_iMinutes) Same assetUTCHours(int, int)but returns this object.setUTCHoursR(int p_iHours, int p_iMinutes, int p_iSeconds) Same assetUTCHours(int, int, int)but returns this object.setUTCHoursR(int p_iHours, int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Same assetUTCHours(int, int, int)but returns this object.voidsetUTCMilliseconds(int p_iMilliseconds) Set the milliseconds, as interpreted in the UTC time zone.setUTCMillisecondsR(int p_iMilliseconds) Same assetUTCMilliseconds(int)but returns this object.voidsetUTCMinutes(int p_iMinutes) Set the minute, as interpreted in the UTC time zone.voidsetUTCMinutes(int p_iMinutes, int p_iSeconds) Set the minute, and second, as interpreted in the UTC time zone.voidsetUTCMinutes(int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Set the minute, second, and milliseconds, as interpreted in the UTC time zone.setUTCMinutesR(int p_iMinutes) Same assetUTCMinutes(int)but returns this object.setUTCMinutesR(int p_iMinutes, int p_iSeconds) Same assetUTCMinutes(int, int)but returns this object.setUTCMinutesR(int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Same assetUTCMinutes(int, int, int)but returns this object.voidsetUTCMonth(int p_iMonth) Set the month, and day, as interpreted in the UTC time zone.voidsetUTCMonth(int p_iMonth, int p_iDay) Set the month, and day, as interpreted in the UTC time zone.setUTCMonthR(int p_iMonth) Same assetUTCMonth(int)but returns this object.setUTCMonthR(int p_iMonth, int p_iDay) Same assetUTCMonthR(int, int)but returns this object.voidsetUTCSeconds(int p_iSeconds) Set the seconds, as interpreted in the UTC time zone.voidsetUTCSeconds(int p_iSeconds, int p_iMilliseconds) Set the second, and milliseconds, as interpreted in the UTC time zone.setUTCSecondsR(int p_iSeconds) Same assetUTCSeconds(int)but returns this object.setUTCSecondsR(int p_iSeconds, int p_iMilliseconds) Same assetUTCSeconds(int, int)but returns this object.voidSet this date to the begin of day, as interpreted in the UTC time zone.Same assetUTCToBeginOfDay()but returns this object.voidSet this date to the end of day, as interpreted in the UTC time zone.Same assetUTCToEndOfDay()but returns this object.voidsetYear(int p_iValue) Veraltet.voidsubDays(int p_iDays) Subtract from this date.voidsubDays(int p_iDays, int p_iHours) Subtract from this date.voidsubDays(int p_iDays, int p_iHours, int p_iMinutes) Subtract from this date.voidsubDays(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds) Subtract from this date.voidsubDays(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Subtract from this date.subDaysR(int p_iDays) Subtract from this date.subDaysR(int p_iDays, int p_iHours) Subtract from this date.subDaysR(int p_iDays, int p_iHours, int p_iMinutes) Subtract from this date.subDaysR(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds) Subtract from this date.subDaysR(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Subtract from this date.voidsubMilliseconds(long p_lMilliseconds) Subtract the given number of milliseconds to the underlying value that represents this instance in time.subMillisecondsR(long p_lMillis) Same assubMilliseconds(long)but returns this object.voidsubMonths(int p_iMonths) Subtract from this date.subMonthsR(int p_iMonths) Same assubMonths(int)but returns this object.voidsubUTCDays(int p_iDays) Subtract from this date.voidsubUTCDays(int p_iDays, int p_iHours) Subtract from this date.voidsubUTCDays(int p_iDays, int p_iHours, int p_iMinutes) Subtract from this date.voidsubUTCDays(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds) Subtract from this date.voidsubUTCDays(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Subtract from this date.subUTCDaysR(int p_iDays) Subtract from this date.subUTCDaysR(int p_iDays, int p_iHours) Subtract from this date.subUTCDaysR(int p_iDays, int p_iHours, int p_iMinutes) Subtract from this date.subUTCDaysR(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds) Subtract from this date.subUTCDaysR(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Subtract from this date.voidsubUTCMonths(int p_iMonths) Subtract from this date.subUTCMonthsR(int p_iMonths) Subtract from this date.voidsubUTCYears(int p_iYears) Subtract from this date.subUTCYearsR(int p_iYears) Subtract from this date.voidsubYears(int p_iYears) Subtract from this date.subYearsR(int p_iYears) Same asaddYears(int)but returns this object.toJSON()Return string that represents this date object jsonified.Return a human-readable string that represents this date object, in UTC.unwrap()withTimeZone(String p_strTimeZone) Create a copy of this date object and associate a calendar with the given time zone with it.withTimeZone(TimeZone p_tz) Create a copy of this date object and associate a calendar with the given time zone with it.Von Klasse geerbte Methoden java.sql.Timestamp
after, before, compareTo, compareTo, equals, equals, from, getNanos, getTime, hashCode, setNanos, setTime, toInstant, toLocalDateTime, toString, valueOf, valueOfVon Klasse geerbte Methoden java.util.Date
after, before, getDate, getTimezoneOffset, parse, setDate, toGMTString, toLocaleString, UTC
-
Felddetails
-
SUNDAY
public static final int SUNDAY1- Siehe auch:
-
MONDAY
public static final int MONDAY2- Siehe auch:
-
TUESDAY
public static final int TUESDAY3- Siehe auch:
-
WEDNESDAY
public static final int WEDNESDAY4- Siehe auch:
-
THURSDAY
public static final int THURSDAY5- Siehe auch:
-
FRIDAY
public static final int FRIDAY6- Siehe auch:
-
SATURDAY
public static final int SATURDAY7- Siehe auch:
-
-
Konstruktordetails
-
CalendarAwareDate
Create a calendar-aware date.Note: The given calendar MUST NOT be modified by the caller.
- Parameter:
p_lTime- The date.p_cal- The calendar to be used for calculations.
-
CalendarAwareDate
Create a calendar-aware date.Note: The given calendar MUST NOT be modified by the caller.
- Parameter:
p_dt- The date.p_cal- The calendar to be used for calculations.
-
CalendarAwareDate
Create a calendar-aware date.Note: The given calendar MUST NOT be modified by the caller.
- Parameter:
p_ts- The date.p_cal- The calendar to be used for calculations.
-
-
Methodendetails
-
clone
-
withTimeZone
Create a copy of this date object and associate a calendar with the given time zone with it.- Parameter:
p_tz- The time zone.- Gibt zurück:
- The copy with the given time zone.
-
withTimeZone
Create a copy of this date object and associate a calendar with the given time zone with it.- Parameter:
p_strTimeZone- The time zone identifier.- Gibt zurück:
- The copy with the given time zone.
-
getYear
Veraltet.UsegetFullYear()instead.Returns a value that is the result of subtracting1900from the year, as interpreted in the given time zone.A call to this method is effectively equivalent with
getFullYear() - 1900. -
setYear
Veraltet.Set the year to the specified value plus1900, as interpreted in the given time zone. -
getFullYear
public int getFullYear()Get the year, as interpreted in the given time zone.- Gibt zurück:
- The year.
-
setFullYear
public void setFullYear(int p_iYear) Set the year, as interpreted in the given time zone.- Parameter:
p_iYear- The year.
-
setFullYearR
Same assetFullYear(int)but returns this object.- Parameter:
p_iYear- The year.- Gibt zurück:
- This object.
-
setFullYear
public void setFullYear(int p_iYear, int p_iMonth) Set the year, and month, as interpreted in the given time zone.- Parameter:
p_iYear- The year.p_iMonth- The (0-based) month.
-
setFullYearR
Same assetFullYear(int, int)but returns this object.- Parameter:
p_iYear- The year.p_iMonth- The (0-based) month.- Gibt zurück:
- This object.
-
setFullYear
public void setFullYear(int p_iYear, int p_iMonth, int p_iDay) Set the year, month, and day, as interpreted in the given time zone.- Parameter:
p_iYear- The year.p_iMonth- The (0-based) month.p_iDay- The (1-based) day of month.
-
setFullYearR
Same assetFullYear(int, int, int)but returns this object.- Parameter:
p_iYear- The year.p_iMonth- The (0-based) month.p_iDay- The (1-based) day of month.- Gibt zurück:
- This object.
-
getUTCFullYear
public int getUTCFullYear()Get the year, as interpreted in the UTC time zone.- Gibt zurück:
- The year.
-
setUTCFullYear
public void setUTCFullYear(int p_iYear) Set the year, as interpreted in the UTC time zone.- Parameter:
p_iYear- The year.
-
setUTCFullYearR
Same assetUTCFullYear(int)but returns this object.- Parameter:
p_iYear- The year.- Gibt zurück:
- This object.
-
setUTCFullYear
public void setUTCFullYear(int p_iYear, int p_iMonth) Set the year, and month, as interpreted in the UTC time zone.- Parameter:
p_iYear- The year.p_iMonth- The (0-based) month.
-
setUTCFullYearR
Same assetUTCFullYear(int, int)but returns this object.- Parameter:
p_iYear- The year.p_iMonth- The (0-based) month.- Gibt zurück:
- This object.
-
setUTCFullYear
public void setUTCFullYear(int p_iYear, int p_iMonth, int p_iDay) Set the year, month, and day, as interpreted in the UTC time zone.- Parameter:
p_iYear- The year.p_iMonth- The (0-based) month.p_iDay- The (1-based) day of month.
-
setUTCFullYearR
Same assetUTCFullYear(int, int, int)but returns this object.- Parameter:
p_iYear- The year.p_iMonth- The (0-based) month.p_iDay- The (1-based) day of month.- Gibt zurück:
- This object.
-
getMonth
public int getMonth()Get the (0-based) month, as interpreted in the given time zone.0represents January, ...,11represents December. -
setMonth
public void setMonth(int p_iMonth) Set the month, and day, as interpreted in the given time zone. -
setMonthR
Same assetMonth(int)but returns this object.- Parameter:
p_iMonth- The month.0represents January, ...,11represents December.- Gibt zurück:
- This object.
-
setMonth
public void setMonth(int p_iMonth, int p_iDay) Set the month, and day, as interpreted in the given time zone.- Parameter:
p_iMonth- The month.0represents January, ...,11represents December.p_iDay- The (1-based) day of month.
-
setMonthR
Same assetMonth(int, int)but returns this object.- Parameter:
p_iMonth- The month.0represents January, ...,11represents December.p_iDay- The (1-based) day of month.- Gibt zurück:
- This object.
-
getUTCMonth
public int getUTCMonth()Get the (0-based) month, as interpreted in the UTC time zone.0represents January, ...,11represents December. -
setUTCMonth
public void setUTCMonth(int p_iMonth) Set the month, and day, as interpreted in the UTC time zone.- Parameter:
p_iMonth- The month.0represents January, ...,11represents December.
-
setUTCMonthR
Same assetUTCMonth(int)but returns this object.- Parameter:
p_iMonth- The month.0represents January, ...,11represents December.- Gibt zurück:
- This object.
-
setUTCMonth
public void setUTCMonth(int p_iMonth, int p_iDay) Set the month, and day, as interpreted in the UTC time zone.- Parameter:
p_iMonth- The month.0represents January, ...,11represents December.p_iDay- The (1-based) day of month.
-
setUTCMonthR
Same assetUTCMonthR(int, int)but returns this object.- Parameter:
p_iMonth- The month.0represents January, ...,11represents December.p_iDay- The (1-based) day of month.- Gibt zurück:
- This object.
-
getDay
Veraltet. -
getDayEs
public int getDayEs()Get the day of week as specified in ECMA-262 (ECMAScript Language Specification).0 specifies Sunday; 1 specifies Monday; 2 specifies Tuesday; 3 specifies Wednesday; 4 specifies Thursday; 5 specifies Friday; and 6 specifies Saturday.
See also ECMA-262, 15.9.5.16.
- Gibt zurück:
- The day of week.
-
getUTCDayEs
public int getUTCDayEs()Get the day of week as specified in ECMA-262 (ECMAScript Language Specification), interpreted in the UTC time zone.0 specifies Sunday; 1 specifies Monday; 2 specifies Tuesday; 3 specifies Wednesday; 4 specifies Thursday; 5 specifies Friday; and 6 specifies Saturday.
See also ECMA-262, 15.9.5.17.
- Gibt zurück:
- The day of week.
-
getDayOfWeek
public int getDayOfWeek()Get the (1-based) day of week, as interpreted in the given time zone.- Gibt zurück:
- The day of week.
- Siehe auch:
-
isMonday
public boolean isMonday() -
isTuesday
public boolean isTuesday() -
isWednesday
public boolean isWednesday() -
isThursday
public boolean isThursday() -
isFriday
public boolean isFriday() -
isSaturday
public boolean isSaturday() -
isSunday
public boolean isSunday() -
getUTCDayOfWeek
public int getUTCDayOfWeek()Get the (1-based) day of week, as interpreted in the UTC time zone.- Gibt zurück:
- The day of week.
- Siehe auch:
-
isUTCMonday
public boolean isUTCMonday() -
isUTCTuesday
public boolean isUTCTuesday() -
isUTCWednesday
public boolean isUTCWednesday() -
isUTCThursday
public boolean isUTCThursday() -
isUTCFriday
public boolean isUTCFriday() -
isUTCSaturday
public boolean isUTCSaturday() -
isUTCSunday
public boolean isUTCSunday() -
getDayOfMonth
public int getDayOfMonth()Get the (1-based) day of month, as interpreted in the given time zone.- Gibt zurück:
- The day of month.
-
setDayOfMonth
public void setDayOfMonth(int p_iDay) Set the (1-based) day of month, as interpreted in the given time zone.- Parameter:
p_iDay- The day of month.
-
setDayOfMonthR
Same assetDayOfMonth(int)but returns this object.- Parameter:
p_iDay- The day of month.- Gibt zurück:
- This object.
-
getUTCDayOfMonth
public int getUTCDayOfMonth()Get the (1-based) day of month, as interpreted in the UTC time zone.- Gibt zurück:
- The day of month.
-
setUTCDayOfMonth
public void setUTCDayOfMonth(int p_iDay) Set the (1-based) day of month, as interpreted in the UTC time zone.- Parameter:
p_iDay- The day of month.
-
setUTCDayOfMonthR
Same assetUTCDayOfMonth(int)but returns this object.- Parameter:
p_iDay- The day of month.- Gibt zurück:
- This object.
-
getUTCDate
public int getUTCDate()Get the (1-based) day of month, as interpreted in the UTC time zone.See also ECMA-262, 15.9.5.15.
- Gibt zurück:
- The day of month.
-
setUTCDate
public void setUTCDate(int p_iDay) Set the (1-based) day of month, as interpreted in the UTC time zone.See also ECMA-262, 15.9.5.37.
- Parameter:
p_iDay- The day of month.
-
setUTCDateR
Same assetUTCDate(int)but returns this object.- Parameter:
p_iDay- The day of month.- Gibt zurück:
- This object.
-
getHours
public int getHours()Get the hour of day, as interpreted in the given time zone. -
setHours
public void setHours(int p_iHours) Set the hour of day, as interpreted in the given time zone. -
setHoursR
Same assetHours(int)but returns this object.- Parameter:
p_iHours- The hour (0 through 23).- Gibt zurück:
- This object.
-
setHours
public void setHours(int p_iHours, int p_iMinutes) Set the hour, and minute, as interpreted in the given time zone.- Parameter:
p_iHours- The hour (0 through 23).p_iMinutes- The minutes.
-
setHoursR
Same assetHours(int, int)but returns this object.- Parameter:
p_iHours- The hour (0 through 23).p_iMinutes- The minutes.- Gibt zurück:
- This object.
-
setHours
public void setHours(int p_iHours, int p_iMinutes, int p_iSeconds) Set the hour, minute, and second, as interpreted in the given time zone.- Parameter:
p_iHours- The hour (0 through 23).p_iMinutes- The minutes.p_iSeconds- The seconds.
-
setHoursR
Same assetHours(int, int, int)but returns this object.- Parameter:
p_iHours- The hour (0 through 23).p_iMinutes- The minutes.p_iSeconds- The seconds.- Gibt zurück:
- This object.
-
setHours
public void setHours(int p_iHours, int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Set the hour, minute, second, and milliseconds, as interpreted in the given time zone.- Parameter:
p_iHours- The hour (0 through 23).p_iMinutes- The minutes.p_iSeconds- The seconds.p_iMilliseconds- The milliseconds.
-
setHoursR
public CalendarAwareDate setHoursR(int p_iHours, int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Same assetHours(int, int, int, int)but returns this object.- Parameter:
p_iHours- The hour (0 through 23).p_iMinutes- The minutes.p_iSeconds- The seconds.p_iMilliseconds- The milliseconds.- Gibt zurück:
- This object.
-
setToBeginOfDay
public void setToBeginOfDay()Set this date to the begin of day, as interpreted in the given time zone.Same as
setHours(0, 0, 0, 0). -
setToBeginOfDayR
Same assetToBeginOfDay()but returns this object.- Gibt zurück:
- This object.
-
setToEndOfDay
public void setToEndOfDay()Set this date to the end of day, as interpreted in the given time zone.Same as
setHours(24, 0, 0, 0). -
setToEndOfDayR
Same assetToEndOfDay()but returns this object.- Gibt zurück:
- This object.
-
setToStartOfWeek
public void setToStartOfWeek(int p_iFirstDayOfWeek) Set this date to the start of the week, as interpreted in the given time zone.- Parameter:
p_iFirstDayOfWeek- The day the weeks starts with (1 for Sunday, 2 for Monday, ..., 7 for Saturday).
-
setToStartOfWeekR
Same assetToStartOfWeek(int)but returns this object.- Gibt zurück:
- This object.
-
getUTCHours
public int getUTCHours()Get the hour of day, as interpreted in the UTC time zone.- Gibt zurück:
- A number from 0 through 23.
-
setUTCHours
public void setUTCHours(int p_iHours) Set the hour of day, as interpreted in the UTC time zone.- Parameter:
p_iHours- The hour (0 through 23).
-
setUTCHoursR
Same assetUTCHours(int)but returns this object.- Parameter:
p_iHours- The hour (0 through 23).- Gibt zurück:
- This object.
-
setUTCHours
public void setUTCHours(int p_iHours, int p_iMinutes) Set the hour, and minute, as interpreted in the UTC time zone.- Parameter:
p_iHours- The hour (0 through 23).p_iMinutes- The minutes.
-
setUTCHoursR
Same assetUTCHours(int, int)but returns this object.- Parameter:
p_iHours- The hour (0 through 23).p_iMinutes- The minutes.- Gibt zurück:
- This object.
-
setUTCHours
public void setUTCHours(int p_iHours, int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Set the hour, minute, and second, as interpreted in the UTC time zone.- Parameter:
p_iHours- The hour (0 through 23).p_iMinutes- The minutes.p_iSeconds- The seconds.p_iMilliseconds- The milliseconds.
-
setUTCHoursR
public CalendarAwareDate setUTCHoursR(int p_iHours, int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Same assetUTCHours(int, int, int)but returns this object.- Parameter:
p_iHours- The hour (0 through 23).p_iMinutes- The minutes.p_iSeconds- The seconds.p_iMilliseconds- The milliseconds.- Gibt zurück:
- This object.
-
setUTCHours
public void setUTCHours(int p_iHours, int p_iMinutes, int p_iSeconds) Set the hour, minute, and second, as interpreted in the UTC time zone.- Parameter:
p_iHours- The hour (0 through 23).p_iMinutes- The minutes.p_iSeconds- The seconds.
-
setUTCHoursR
Same assetUTCHours(int, int, int)but returns this object.- Parameter:
p_iHours- The hour (0 through 23).p_iMinutes- The minutes.p_iSeconds- The seconds.- Gibt zurück:
- This object.
-
setUTCToBeginOfDay
public void setUTCToBeginOfDay()Set this date to the begin of day, as interpreted in the UTC time zone.Same as
setUTCHours(0, 0, 0, 0). -
setUTCToBeginOfDayR
Same assetUTCToBeginOfDay()but returns this object.- Gibt zurück:
- This object.
-
setUTCToEndOfDay
public void setUTCToEndOfDay()Set this date to the end of day, as interpreted in the UTC time zone.Same as
setUTCHours(24, 0, 0, 0). -
setUTCToEndOfDayR
Same assetUTCToEndOfDay()but returns this object.- Gibt zurück:
- This object.
-
getMinutes
public int getMinutes()Get the minute, as interpreted in the given time zone.- Setzt außer Kraft:
getMinutesin KlasseDate- Gibt zurück:
- The minute.
-
setMinutes
public void setMinutes(int p_iMinutes) Set the minute, as interpreted in the given time zone.- Setzt außer Kraft:
setMinutesin KlasseDate- Parameter:
p_iMinutes- The minutes.
-
setMinutesR
Same assetMinutes(int)but returns this object.- Parameter:
p_iMinutes- The minutes.- Gibt zurück:
- This object.
-
setMinutes
public void setMinutes(int p_iMinutes, int p_iSeconds) Set the minute, and second, as interpreted in the given time zone.- Parameter:
p_iMinutes- The minutes.p_iSeconds- The seconds.
-
setMinutesR
Same assetMinutes(int, int)but returns this object.- Parameter:
p_iMinutes- The minutes.p_iSeconds- The seconds.- Gibt zurück:
- This object.
-
setMinutes
public void setMinutes(int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Set the minute, second, and milliseconds, as interpreted in the given time zone.- Parameter:
p_iMinutes- The minutes.p_iSeconds- The seconds.p_iMilliseconds- The milliseconds.
-
setMinutesR
Same assetMinutes(int, int, int)but returns this object.- Parameter:
p_iMinutes- The minutes.p_iSeconds- The seconds.p_iMilliseconds- The milliseconds.- Gibt zurück:
- This object.
-
getUTCMinutes
public int getUTCMinutes()Get the minute, as interpreted in the UTC time zone.- Gibt zurück:
- The minute.
-
setUTCMinutes
public void setUTCMinutes(int p_iMinutes) Set the minute, as interpreted in the UTC time zone.- Parameter:
p_iMinutes- The minutes.
-
setUTCMinutesR
Same assetUTCMinutes(int)but returns this object.- Parameter:
p_iMinutes- The minutes.- Gibt zurück:
- This object.
-
setUTCMinutes
public void setUTCMinutes(int p_iMinutes, int p_iSeconds) Set the minute, and second, as interpreted in the UTC time zone.- Parameter:
p_iMinutes- The minutes.p_iSeconds- The seconds.
-
setUTCMinutesR
Same assetUTCMinutes(int, int)but returns this object.- Parameter:
p_iMinutes- The minutes.p_iSeconds- The seconds.- Gibt zurück:
- This object.
-
setUTCMinutes
public void setUTCMinutes(int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Set the minute, second, and milliseconds, as interpreted in the UTC time zone.- Parameter:
p_iMinutes- The minutes.p_iSeconds- The seconds.p_iMilliseconds- The milliseconds.
-
setUTCMinutesR
Same assetUTCMinutes(int, int, int)but returns this object.- Parameter:
p_iMinutes- The minutes.p_iSeconds- The seconds.p_iMilliseconds- The milliseconds.- Gibt zurück:
- This object.
-
getSeconds
public int getSeconds()Get the seconds, as interpreted in the given time zone.- Setzt außer Kraft:
getSecondsin KlasseDate- Gibt zurück:
- The seconds.
-
setSeconds
public void setSeconds(int p_iSeconds) Set the seconds, as interpreted in the given time zone.- Setzt außer Kraft:
setSecondsin KlasseDate- Parameter:
p_iSeconds- The seconds.
-
setSecondsR
Same assetSeconds(int)but returns this object.- Parameter:
p_iSeconds- The seconds.- Gibt zurück:
- This object.
-
setSeconds
public void setSeconds(int p_iSeconds, int p_iMilliseconds) Set the second, and milliseconds, as interpreted in the given time zone.- Parameter:
p_iSeconds- The seconds.p_iMilliseconds- The milliseconds.
-
setSecondsR
Same assetSeconds(int, int)but returns this object.- Parameter:
p_iSeconds- The seconds.p_iMilliseconds- The milliseconds.- Gibt zurück:
- This object.
-
getUTCSeconds
public int getUTCSeconds()Get the seconds, as interpreted in the UTC time zone.- Gibt zurück:
- The seconds.
-
setUTCSeconds
public void setUTCSeconds(int p_iSeconds) Set the seconds, as interpreted in the UTC time zone.- Parameter:
p_iSeconds- The seconds.
-
setUTCSecondsR
Same assetUTCSeconds(int)but returns this object.- Parameter:
p_iSeconds- The seconds.- Gibt zurück:
- This object.
-
setUTCSeconds
public void setUTCSeconds(int p_iSeconds, int p_iMilliseconds) Set the second, and milliseconds, as interpreted in the UTC time zone.- Parameter:
p_iSeconds- The seconds.p_iMilliseconds- The milliseconds.
-
setUTCSecondsR
Same assetUTCSeconds(int, int)but returns this object.- Parameter:
p_iSeconds- The seconds.p_iMilliseconds- The milliseconds.- Gibt zurück:
- This object.
-
getMilliseconds
public int getMilliseconds()Get the milliseconds, as interpreted in the given time zone.- Gibt zurück:
- The milliseconds.
-
setMilliseconds
public void setMilliseconds(int p_iMilliseconds) Set the milliseconds, as interpreted in the given time zone.- Parameter:
p_iMilliseconds- The milliseconds.
-
setMillisecondsR
Same assetMilliseconds(int)but returns this object.- Parameter:
p_iMilliseconds- The milliseconds.- Gibt zurück:
- This object.
-
getUTCMilliseconds
public int getUTCMilliseconds()Get the milliseconds, as interpreted in the UTC time zone.- Gibt zurück:
- The milliseconds.
-
setUTCMilliseconds
public void setUTCMilliseconds(int p_iMilliseconds) Set the milliseconds, as interpreted in the UTC time zone.- Parameter:
p_iMilliseconds- The milliseconds.
-
setUTCMillisecondsR
Same assetUTCMilliseconds(int)but returns this object.- Parameter:
p_iMilliseconds- The milliseconds.- Gibt zurück:
- This object.
-
addMilliseconds
public void addMilliseconds(long p_lMilliseconds) Add the given number of milliseconds to the underlying value that represents this instance in time.Note that this calculation does not involve any calendar semantics.
- Parameter:
p_lMilliseconds- The number of milliseconds to be added.
-
addMillisecondsR
Same asaddMilliseconds(long)but returns this object.- Parameter:
p_lMilliseconds- The number of milliseconds to be added.- Gibt zurück:
- This object.
-
subMilliseconds
public void subMilliseconds(long p_lMilliseconds) Subtract the given number of milliseconds to the underlying value that represents this instance in time.Note that this calculation does not involve any calendar semantics.
- Parameter:
p_lMilliseconds- The number of milliseconds to be subtracted.
-
subMillisecondsR
Same assubMilliseconds(long)but returns this object.- Parameter:
p_lMillis- The number of milliseconds to be subtracted.- Gibt zurück:
- This object.
-
addYears
public void addYears(int p_iYears) Add to this date. -
addYearsR
Same asaddYears(int)but returns this object.- Gibt zurück:
- This object.
-
subYears
public void subYears(int p_iYears) Subtract from this date. -
subYearsR
Same asaddYears(int)but returns this object.- Gibt zurück:
- This object.
-
addMonths
public void addMonths(int p_iMonths) Add to this date. -
addMonthsR
Same asaddMonths(int)but returns this object.- Gibt zurück:
- This object.
-
subMonths
public void subMonths(int p_iMonths) Subtract from this date. -
subMonthsR
Same assubMonths(int)but returns this object.- Gibt zurück:
- This object.
-
addDays
public void addDays(int p_iDays) Add to this date. -
addDaysR
Add to this date.- Gibt zurück:
- This object.
-
addDays
public void addDays(int p_iDays, int p_iHours) Add to this date. -
addDaysR
Add to this date.- Gibt zurück:
- This object.
-
addDays
public void addDays(int p_iDays, int p_iHours, int p_iMinutes) Add to this date. -
addDaysR
Add to this date.- Gibt zurück:
- This object.
-
addDays
public void addDays(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds) Add to this date. -
addDaysR
Add to this date.- Gibt zurück:
- This object.
-
addDays
public void addDays(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Add to this date. -
addDaysR
public CalendarAwareDate addDaysR(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Add to this date.- Gibt zurück:
- This object.
-
subDays
public void subDays(int p_iDays) Subtract from this date. -
subDaysR
Subtract from this date.- Gibt zurück:
- This object.
-
subDays
public void subDays(int p_iDays, int p_iHours) Subtract from this date. -
subDaysR
Subtract from this date.- Gibt zurück:
- This object.
-
subDays
public void subDays(int p_iDays, int p_iHours, int p_iMinutes) Subtract from this date. -
subDaysR
Subtract from this date.- Gibt zurück:
- This object.
-
subDays
public void subDays(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds) Subtract from this date. -
subDaysR
Subtract from this date.- Gibt zurück:
- This object.
-
subDays
public void subDays(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Subtract from this date. -
subDaysR
public CalendarAwareDate subDaysR(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Subtract from this date.- Gibt zurück:
- This object.
-
addUTCYears
public void addUTCYears(int p_iYears) Add to this date. -
addUTCYearsR
Add to this date.- Gibt zurück:
- This object.
-
subUTCYears
public void subUTCYears(int p_iYears) Subtract from this date. -
subUTCYearsR
Subtract from this date.- Gibt zurück:
- This object.
-
addUTCMonths
public void addUTCMonths(int p_iMonths) Add to this date. -
addUTCMonthsR
Add to this date.- Gibt zurück:
- This object.
-
subUTCMonths
public void subUTCMonths(int p_iMonths) Subtract from this date. -
subUTCMonthsR
Subtract from this date.- Gibt zurück:
- This object.
-
addUTCDays
public void addUTCDays(int p_iDays) Add to this date. -
addUTCDaysR
Add to this date.- Gibt zurück:
- This object.
-
addUTCDays
public void addUTCDays(int p_iDays, int p_iHours) Add to this date. -
addUTCDaysR
Add to this date.- Gibt zurück:
- This object.
-
addUTCDays
public void addUTCDays(int p_iDays, int p_iHours, int p_iMinutes) Add to this date. -
addUTCDaysR
Add to this date.- Gibt zurück:
- This object.
-
addUTCDays
public void addUTCDays(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds) Add to this date. -
addUTCDaysR
Add to this date.- Gibt zurück:
- This object.
-
addUTCDays
public void addUTCDays(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Add to this date. -
addUTCDaysR
public CalendarAwareDate addUTCDaysR(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Add to this date.- Gibt zurück:
- This object.
-
subUTCDays
public void subUTCDays(int p_iDays) Subtract from this date. -
subUTCDaysR
Subtract from this date.- Gibt zurück:
- This object.
-
subUTCDays
public void subUTCDays(int p_iDays, int p_iHours) Subtract from this date. -
subUTCDaysR
Subtract from this date.- Gibt zurück:
- This object.
-
subUTCDays
public void subUTCDays(int p_iDays, int p_iHours, int p_iMinutes) Subtract from this date. -
subUTCDaysR
Subtract from this date.- Gibt zurück:
- This object.
-
subUTCDays
public void subUTCDays(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds) Subtract from this date. -
subUTCDaysR
Subtract from this date.- Gibt zurück:
- This object.
-
subUTCDays
public void subUTCDays(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Subtract from this date. -
subUTCDaysR
public CalendarAwareDate subUTCDaysR(int p_iDays, int p_iHours, int p_iMinutes, int p_iSeconds, int p_iMilliseconds) Subtract from this date.- Gibt zurück:
- This object.
-
modify
Modify this date according to the rules specified in thep_strRulesparameter in the given time zone.The rules consist of up to seven rules for each of the calendar fields
YEAR,MONTH,DAY_OF_MONTH,HOUR_OF_DAY,MINUTE,SECOND, andMILLISECOND, in that order, and separated by commas. Each rule specifies either a positive or negative offset (e.g.-1, or+1), or an absolute value for the field (e.g.15). Other than in the Java Calendar API, the month values are 1-based, i.e. 1 = January, 2 = February, ...Example:
+1,1,1,12,30,0,0means the given date plus one year, the first of January, 12:30:00.0 on the 24-hour clock.- Parameter:
p_strRules- The rules (must not benullor empty).- Löst aus:
IllegalArgumentException- Ifp_strRulesisnullor empty.
-
modifyR
Same asmodify(String)but returns this object.- Gibt zurück:
- This object.
-
modify
Modify this date according to the rules specified in thep_strRulesparameter in the given time zone.The rules consist of up to seven rules for each of the calendar fields
YEAR,MONTH,DAY_OF_MONTH,HOUR_OF_DAY,MINUTE,SECOND, andMILLISECOND, in that order, and separated by commas. Each rule specifies either a positive or negative offset (e.g.-1, or+1), or an absolute value for the field (e.g.15). Other than in the Java Calendar API, the month values are 1-based, i.e. 1 = January, 2 = February, ...Example:
+1,1,1,12,30,0,0means the given date plus one year, the first of January, 12:30:00.0 on the 24-hour clock.- Parameter:
p_strRules- The rules (must not benullor empty).p_bClearMillis-trueif the calendar's millisecond field should be set to zero if the rule does not specify the millisecond field, orfalseotherwise.- Löst aus:
IllegalArgumentException- Ifp_strRulesisnullor empty.
-
modifyR
Same asmodify(String, boolean)but returns this object.- Gibt zurück:
- This object.
-
modifyUTC
Modify this date according to the rules specified in thep_strRulesparameter in the UTC time zone.The rules consist of up to seven rules for each of the calendar fields
YEAR,MONTH,DAY_OF_MONTH,HOUR_OF_DAY,MINUTE,SECOND, andMILLISECOND, in that order, and separated by commas. Each rule specifies either a positive or negative offset (e.g.-1, or+1), or an absolute value for the field (e.g.15). Other than in the Java Calendar API, the month values are 1-based, i.e. 1 = January, 2 = February, ...Example:
+1,1,1,12,30,0,0means the given date plus one year, the first of January, 12:30:00.0 on the 24-hour clock.- Parameter:
p_strRules- The rules (must not benullor empty).- Löst aus:
IllegalArgumentException- Ifp_strRulesisnullor empty.
-
modifyUTCR
Same asmodifyUTC(String)but returns this object.- Gibt zurück:
- This object.
-
modifyUTC
Modify this date according to the rules specified in thep_strRulesparameter in the given time zone.The rules consist of up to seven rules for each of the calendar fields
YEAR,MONTH,DAY_OF_MONTH,HOUR_OF_DAY,MINUTE,SECOND, andMILLISECOND, in that order, and separated by commas. Each rule specifies either a positive or negative offset (e.g.-1, or+1), or an absolute value for the field (e.g.15). Other than in the Java Calendar API, the month values are 1-based, i.e. 1 = January, 2 = February, ...Example:
+1,1,1,12,30,0,0means the given date plus one year, the first of January, 12:30:00.0 on the 24-hour clock.- Parameter:
p_strRules- The rules (must not benullor empty).p_bClearMillis-trueif the calendar's millisecond field should be set to zero if the rule does not specify the millisecond field, orfalseotherwise.- Löst aus:
IllegalArgumentException- Ifp_strRulesisnullor empty.
-
modifyUTCR
Same asmodifyUTC(String, boolean)but returns this object.- Gibt zurück:
- This object.
-
toUTCString
Return a human-readable string that represents this date object, in UTC.See also ECMA-262, 15.9.5.42.
- Gibt zurück:
- A human-readable UTC date literal.
-
toJSON
Return string that represents this date object jsonified.The format is
"yyyy-MM-dd'T'HH:mm:ss'Z'".See also ECMA-262, 15.9.5.44.
- Gibt zurück:
- A JSON compatible date literal.
-
format
Format this date using the given simple date format in the given time zone.- Parameter:
p_strFormat- The simple date format.- Gibt zurück:
- The formatted date.
-
format
Format this date using the given simple date format in the given time zone.- Parameter:
p_strFormat- The simple date format.p_strLocaleId- The ID (language tag) of the locale to be used.- Gibt zurück:
- The formatted date.
-
formatUTC
Format this date using the given simple date format in the UTC time zone.- Parameter:
p_strFormat- The simple date format.- Gibt zurück:
- The formatted date.
-
formatUTC
Format this date using the given simple date format in the UTC time zone.- Parameter:
p_strFormat- The simple date format.p_strLocaleId- The ID (language tag) of the locale to be used.- Gibt zurück:
- The formatted date.
-
getType
Beschreibung aus Schnittstelle kopiert:IValueHolderThe type of data this value holder holds.- Angegeben von:
getTypein SchnittstelleIValueHolder<Date>- Gibt zurück:
IxDatatype.DATETIME.
-
getValue
Beschreibung aus Schnittstelle kopiert:IValueHolderGet the data that this value holder holds.Implementations MUST ensure that multiple calls to this method will return values that equal each other.
- Angegeben von:
getValuein SchnittstelleIValueHolder<Date>- Gibt zurück:
- The data.
-
getRawValue
Beschreibung aus Schnittstelle kopiert:IValueHolderGet the raw data that this value holder holds.- Angegeben von:
getRawValuein SchnittstelleIValueHolder<Date>- Gibt zurück:
- The raw data.
-
hasValue
public boolean hasValue()Beschreibung aus Schnittstelle kopiert:IValueHolderCheck if this value holder currently holds data or not.- Angegeben von:
hasValuein SchnittstelleIValueHolder<Date>- Gibt zurück:
trueif the data holder holds data, orfalseotherwise.
-
getCanonicalLexicalRepresentation
Beschreibung aus Schnittstelle kopiert:IValueHolderGet the canonical lexical representation of this value according to it's datatype.- Angegeben von:
getCanonicalLexicalRepresentationin SchnittstelleIValueHolder<Date>- Gibt zurück:
- The canonical lexical representation of the current date.
- Siehe auch:
-
asTime
Get the current time, i.e. the instance in time with its date set to zero 1970-01-01 in the UTC time zone.- Gibt zurück:
- The current time.
-
unwrap
-
getFullYear()instead.