public class TIMEDATE extends BaseStruct implements TimeStruct, Comparable<TIMEDATE>
Modifier and Type | Field and Description |
---|---|
static int |
_Innards |
static int |
sizeOf |
data, owned
Constructor and Description |
---|
TIMEDATE() |
TIMEDATE(long pointer) |
TIMEDATE(long pointer,
boolean owned) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TIMEDATE t2) |
boolean |
equals(Object obj) |
void |
fromDateOnly(int year,
int month,
int day) |
void |
fromDateTime(int year,
int month,
int day,
int hour,
int minute,
int second,
int hundredth,
int zone,
int dst) |
void |
fromJavaCalendar(Calendar c) |
void |
fromJavaDate(Date date) |
void |
fromJavaMillis(long date) |
void |
fromTimeOnly(int hour,
int minute,
int second,
int hundredth) |
int |
getInnards(int index) |
boolean |
isDateOnly() |
boolean |
isTimeOnly() |
void |
setInnards(int index,
int value) |
void |
setToTimeConstant(short timeConstant)
Sets the value of this TIMEDATE to a time constant defined by Domino.
|
void |
setToTimeConstant(TimeConstant timeConstant) |
String |
toHexString() |
Calendar |
toJavaCalendar()
Returns this date/time value as a
Calendar . |
Date |
toJavaDate() |
Date |
toJavaDateCompat() |
long |
toJavaMillis() |
long |
toJavaMillisCompat()
This method converts the TIMEDATE to an epoch timestamp using behavior based on the legacy
Domino Java API: empty dates or times are based on the current day, rather than the epoch.
|
String |
toString() |
TIME |
toTIME()
It is the responsibility of the caller to free the returned
TIME struct. |
TIME |
toTIME(TimeZone timeZone)
It is the responsibility of the caller to free the returned
TIME struct. |
_checkRefValidity, _getBYTE, _getDHandle, _getDWORD, _getFONTID, _getHTMLAPI_REF_TYPE, _getInt, _getLong, _getNOTEID, _getPointer, _getUSHORT, _getWORD, _setBYTE, _setDHandle, _setDWORD, _setFONTID, _setInt, _setLong, _setNOTEID, _setUSHORT, _setWORD, finalize, free, free, getAllocatedStructCount, getDataPtr, getField, isRefValid, isTraceCreation, setDataPtr, setTraceCreation
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait
free
public TIMEDATE()
public TIMEDATE(long pointer)
public TIMEDATE(long pointer, boolean owned)
public void setToTimeConstant(short timeConstant) throws DominoException
timeConstant
- a time constant value, one of TIMEDATE_xxxDominoException
public void setToTimeConstant(TimeConstant timeConstant) throws DominoException
DominoException
public String toHexString()
TIMEDATE
as a hex stringpublic final int getInnards(int index)
public final void setInnards(int index, int value)
public TIME toTIME() throws DominoException
TIME
struct.TIME
struct populated with this TIMEDATE and processed with TimeGMToLocalZone
DominoException
public TIME toTIME(TimeZone timeZone) throws DominoException
TIME
struct.timeZone
- the time zone to use for conversion. If specified as null
, then the zone
is not considered during conversionTIME
struct populated with this TIMEDATE and processed with TimeGMToLocal
or TimeGMToLocalZone
DominoException
public Date toJavaDate() throws DominoException
DominoException
public Date toJavaDateCompat() throws DominoException
DominoException
public long toJavaMillis() throws DominoException
DominoException
public long toJavaMillisCompat() throws DominoException
DominoException
public Calendar toJavaCalendar() throws DominoException
Calendar
. If the date/time expresses only date or time,
the other component is filled in with the epoch.DominoException
public void fromJavaCalendar(Calendar c) throws DominoException
DominoException
public void fromJavaDate(Date date) throws DominoException
DominoException
public void fromJavaMillis(long date) throws DominoException
DominoException
public boolean isDateOnly() throws DominoException
DominoException
public void fromDateOnly(int year, int month, int day) throws DominoException
DominoException
public boolean isTimeOnly() throws DominoException
DominoException
public void fromTimeOnly(int hour, int minute, int second, int hundredth) throws DominoException
DominoException
public void fromDateTime(int year, int month, int day, int hour, int minute, int second, int hundredth, int zone, int dst) throws DominoException
DominoException
public int compareTo(TIMEDATE t2)
compareTo
in interface Comparable<TIMEDATE>
public String toString()
toString
in class BaseStruct
Copyright © 2014–2018. All rights reserved.