/** * 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; }
/** * 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); }
/** * 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); }
/** * 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); }
/** * Sets the date in this cell * * @param d the date */ public virtual void setDate(DateTime d) { date = new CSharpJExcel.Interop.Date(d); calculateValue(true); }