public class DateTime extends jxl.write.biff.DateRecord implements WritableCell, DateCell
Modifier and Type | Field and Description |
---|---|
static jxl.write.biff.DateRecord.GMTDate |
GMT
Instance variable for dummy variable overload
|
Constructor and Description |
---|
DateTime(DateCell dc)
A constructor called by the worksheet when creating a writable version
of a spreadsheet that has been read in
|
DateTime(int c,
int r,
java.util.Date d)
Constructor.
|
DateTime(int c,
int r,
java.util.Date d,
CellFormat st)
Constructor which takes the format for this cell
|
DateTime(int c,
int r,
java.util.Date d,
CellFormat st,
boolean tim)
Constructor which takes the format for the cell and an indicator
as to whether this cell is a full date time or purely just a time
eg.
|
DateTime(int c,
int r,
java.util.Date d,
CellFormat st,
jxl.write.biff.DateRecord.GMTDate a)
Constructor, which adjusts the specified date to take timezone
considerations into account
|
DateTime(int c,
int r,
java.util.Date d,
jxl.write.biff.DateRecord.GMTDate a)
Constructor, which adjusts the specified date to take timezone
considerations into account.
|
Modifier and Type | Method and Description |
---|---|
WritableCell |
copyTo(int col,
int row)
Implementation of the deep copy function
|
void |
setDate(java.util.Date d)
Sets the date for this cell
|
void |
setDate(java.util.Date d,
jxl.write.biff.DateRecord.GMTDate a)
Sets the date for this cell, performing the necessary timezone adjustments
|
getContents, getData, getDate, getDateFormat, getType, isTime
addCellFeatures, getCellFeatures, getCellFormat, getColumn, getRow, getSheet, getWritableCellFeatures, isHidden, removeCellFeatures, removeComment, removeDataValidation, setCellFeatures, setCellFormat
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getWritableCellFeatures, setCellFeatures, setCellFormat
getDate, getDateFormat, isTime
getCellFeatures, getCellFormat, getColumn, getContents, getRow, getType, isHidden
public static final jxl.write.biff.DateRecord.GMTDate GMT
public DateTime(int c, int r, java.util.Date d)
c
- the columnr
- the rowd
- the datepublic DateTime(int c, int r, java.util.Date d, jxl.write.biff.DateRecord.GMTDate a)
c
- the columnr
- the rowd
- the datea
- dummy overloadpublic DateTime(int c, int r, java.util.Date d, CellFormat st)
c
- the columnr
- the rowst
- the formatd
- the datepublic DateTime(int c, int r, java.util.Date d, CellFormat st, jxl.write.biff.DateRecord.GMTDate a)
c
- the columnr
- the rowd
- the datest
- the cell formata
- the cummy overloadpublic DateTime(int c, int r, java.util.Date d, CellFormat st, boolean tim)
c
- the columnr
- the rowst
- the styletim
- flag indicating that this represents a timed
- the datepublic DateTime(DateCell dc)
dc
- the date to copypublic void setDate(java.util.Date d)
setDate
in class jxl.write.biff.DateRecord
d
- the datepublic void setDate(java.util.Date d, jxl.write.biff.DateRecord.GMTDate a)
setDate
in class jxl.write.biff.DateRecord
d
- the datea
- the dummy overloadpublic WritableCell copyTo(int col, int row)
copyTo
in interface WritableCell
col
- the column which the new cell will occupyrow
- the row which the new cell will occupy