예제 #1
0
 /**
  * Copy constructor
  *
  * @param c the column
  * @param r the row
  * @param dr the record to copy
  */
 protected DateRecord(int c, int r, DateRecord dr)
     : base(CSharpJExcel.Jxl.Biff.Type.NUMBER, c, r, dr)
 {
     value = dr.value;
     time  = dr.time;
     date  = dr.date;
 }
예제 #2
0
 /**
  * Constructor invoked from the API
  *
  * @param c the column
  * @param r the row
  * @param st the date format
  * @param tim time indicator
  * @param d the date
  */
 protected DateRecord(int c, int r, DateTime d, CellFormat st, bool tim)
     : base(CSharpJExcel.Jxl.Biff.Type.NUMBER, c, r, st)
 {
     date = new CSharpJExcel.Interop.Date(d);
     time = tim;
     calculateValue(false);
 }
예제 #3
0
 /**
  * Constructor invoked when copying a readable spreadsheet
  *
  * @param dc the date to copy
  */
 protected DateRecord(DateCell dc)
     : base(CSharpJExcel.Jxl.Biff.Type.NUMBER, dc)
 {
     date = new CSharpJExcel.Interop.Date(dc.getDate());
     time = dc.isTime();
     calculateValue(false);
 }
예제 #4
0
 /**
  * Sets the date in this cell, taking the timezone into account
  *
  * @param d the date
  * @param a adjust for timezone
  */
 public virtual void setDate(DateTime d, GMTDate a)
 {
     date = new CSharpJExcel.Interop.Date(d);
     calculateValue(false);
 }
예제 #5
0
 /**
  * Sets the date in this cell
  *
  * @param d the date
  */
 public virtual void setDate(DateTime d)
 {
     date = new CSharpJExcel.Interop.Date(d);
     calculateValue(true);
 }
예제 #6
0
 /**
  * Sets the date in this cell, taking the timezone into account
  *
  * @param d the date
  * @param a adjust for timezone
  */
 public virtual void setDate(DateTime d, GMTDate a)
 {
     date = new CSharpJExcel.Interop.Date(d);
     calculateValue(false);
 }
예제 #7
0
 /**
  * Sets the date in this cell
  *
  * @param d the date
  */
 public virtual void setDate(DateTime d)
 {
     date = new CSharpJExcel.Interop.Date(d);
     calculateValue(true);
 }
예제 #8
0
 /**
  * Copy constructor
  *
  * @param c the column
  * @param r the row
  * @param dr the record to copy
  */
 protected DateRecord(int c, int r, DateRecord dr)
     : base(CSharpJExcel.Jxl.Biff.Type.NUMBER, c, r, dr)
 {
     value = dr.value;
     time = dr.time;
     date = dr.date;
 }
예제 #9
0
 /**
  * Constructor invoked when copying a readable spreadsheet
  *
  * @param dc the date to copy
  */
 protected DateRecord(DateCell dc)
     : base(CSharpJExcel.Jxl.Biff.Type.NUMBER, dc)
 {
     date = new CSharpJExcel.Interop.Date(dc.getDate());
     time = dc.isTime();
     calculateValue(false);
 }
예제 #10
0
 /**
  * Constructor invoked from the API
  *
  * @param c the column
  * @param r the row
  * @param st the date format
  * @param tim time indicator
  * @param d the date
  */
 protected DateRecord(int c, int r, DateTime d, CellFormat st, bool tim)
     : base(CSharpJExcel.Jxl.Biff.Type.NUMBER, c, r, st)
 {
     date = new CSharpJExcel.Interop.Date(d);
     time = tim;
     calculateValue(false);
 }