Beispiel #1
0
 internal override DateTime GetDateTime(SQLiteStatement stmt, int index)
 {
     if (this._datetimeFormat == SQLiteDateFormats.Ticks)
     {
         return(SQLiteConvert.TicksToDateTime(this.GetInt64(stmt, index), this._datetimeKind));
     }
     if (this._datetimeFormat == SQLiteDateFormats.JulianDay)
     {
         return(SQLiteConvert.ToDateTime(this.GetDouble(stmt, index), this._datetimeKind));
     }
     if (this._datetimeFormat != SQLiteDateFormats.UnixEpoch)
     {
         return(base.ToDateTime(this.GetText(stmt, index)));
     }
     return(SQLiteConvert.UnixEpochToDateTime(this.GetInt64(stmt, index), this._datetimeKind));
 }