10 references to _dateTimeOffsetInfo
System.Data (10)
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (10)
375
byte scale = _value.
_dateTimeOffsetInfo
.dateTime2Info.timeInfo.scale;
414
TimeSpan offset = new TimeSpan(0, _value.
_dateTimeOffsetInfo
.offset, 0);
416
return new DateTimeOffset(GetTicksFromDateTime2Info(_value.
_dateTimeOffsetInfo
.dateTime2Info) + offset.Ticks, offset);
911
FillInTimeInfo(ref _value.
_dateTimeOffsetInfo
.dateTime2Info.timeInfo, bytes, length - 5, scale, denormalizedScale); // remaining 5 bytes are for date and offset
912
_value.
_dateTimeOffsetInfo
.dateTime2Info.date = GetDateFromByteArray(bytes, length - 5); // 3 bytes for date
913
_value.
_dateTimeOffsetInfo
.offset = (Int16)(bytes[length - 2] + (bytes[length - 1] << 8)); // 2 bytes for offset (Int16)
922
_value.
_dateTimeOffsetInfo
.dateTime2Info.timeInfo.ticks = utcDateTime.TimeOfDay.Ticks;
923
_value.
_dateTimeOffsetInfo
.dateTime2Info.timeInfo.scale = scale;
924
_value.
_dateTimeOffsetInfo
.dateTime2Info.date = utcDateTime.Subtract(DateTime.MinValue).Days;
925
_value.
_dateTimeOffsetInfo
.offset = (Int16)dateTimeOffset.Offset.TotalMinutes;