39 references to Offset
mscorlib (22)
system\datetimeoffset.cs (21)
217
return new DateTime((m_dateTime +
Offset
).Ticks, DateTimeKind.Unspecified);
366
return new DateTimeOffset(ClockDateTime.Add(timeSpan),
Offset
);
376
return new DateTimeOffset(ClockDateTime.AddDays(days),
Offset
);
386
return new DateTimeOffset(ClockDateTime.AddHours(hours),
Offset
);
396
return new DateTimeOffset(ClockDateTime.AddMilliseconds(milliseconds),
Offset
);
406
return new DateTimeOffset(ClockDateTime.AddMinutes(minutes),
Offset
);
410
return new DateTimeOffset(ClockDateTime.AddMonths(months),
Offset
);
420
return new DateTimeOffset(ClockDateTime.AddSeconds(seconds),
Offset
);
428
return new DateTimeOffset(ClockDateTime.AddTicks(ticks),
Offset
);
440
return new DateTimeOffset(ClockDateTime.AddYears(years),
Offset
);
500
return (ClockDateTime == other.ClockDateTime &&
Offset
== other.
Offset
&& ClockDateTime.Kind == other.ClockDateTime.Kind);
550
m_offsetMinutes = ValidateOffset(
Offset
);
551
m_dateTime = ValidateDate(ClockDateTime,
Offset
);
658
return new DateTimeOffset(ClockDateTime.Subtract(value),
Offset
);
705
return DateTimeFormat.Format(ClockDateTime, null, DateTimeFormatInfo.CurrentInfo,
Offset
);
710
return DateTimeFormat.Format(ClockDateTime, format, DateTimeFormatInfo.CurrentInfo,
Offset
);
715
return DateTimeFormat.Format(ClockDateTime, null, DateTimeFormatInfo.GetInstance(formatProvider),
Offset
);
720
return DateTimeFormat.Format(ClockDateTime, format, DateTimeFormatInfo.GetInstance(formatProvider),
Offset
);
838
return new DateTimeOffset(dateTimeOffset.ClockDateTime + timeSpan, dateTimeOffset.
Offset
);
843
return new DateTimeOffset(dateTimeOffset.ClockDateTime - timeSpan, dateTimeOffset.
Offset
);
System\Diagnostics\Eventing\TraceLogging\SimpleTypeInfos.cs (1)
925
collector.AddScalar(value.
Offset
.Ticks);
System (1)
compmod\system\componentmodel\DateTimeOffsetConverter.cs (1)
159
dto.Year, dto.Month, dto.Day, dto.Hour, dto.Minute, dto.Second, dto.Millisecond, dto.
Offset
});
System.Data (7)
fx\src\data\System\Data\Filter\FunctionNode.cs (2)
464
if (DateTimeOffset.Now.
Offset
.Hours != (int)argumentValues[1] && DateTimeOffset.Now.
Offset
.Minutes != (int)argumentValues[2]) {
fx\src\data\System\Data\Sql\SqlMetaData.cs (1)
1038
return new DateTimeOffset(InternalAdjustTimeTicks(value.Ticks), value.
Offset
);
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (1)
925
_value._dateTimeOffsetInfo.offset = (Int16)dateTimeOffset.
Offset
.TotalMinutes;
fx\src\data\System\Data\SqlClient\TdsParser.cs (2)
6322
Int16 offset = (Int16)value.
Offset
.TotalMinutes;
6331
Int16 offset = (Int16)value.
Offset
.TotalMinutes;
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (1)
587
Int16 offset = (Int16)value.
Offset
.TotalMinutes;
System.Data.Entity.Design (1)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
779
new CodeObjectCreateExpression(TypeReference.TimeSpan, new CodePrimitiveExpression(dateTimeOffset.
Offset
.Ticks)));
System.Runtime.Serialization (1)
System\Runtime\Serialization\DateTimeOffsetAdapter.cs (1)
67
return new DateTimeOffsetAdapter(value.UtcDateTime, (short)value.
Offset
.TotalMinutes);
System.ServiceModel (2)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (1)
645
if (dateTime.
Offset
== zeroOffset)
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (1)
465
if (dateTime.
Offset
== Atom10FeedFormatter.zeroOffset)
System.Xml (5)
System\Xml\BinaryXml\SqlUtils.cs (3)
919
WriteTimeZone(sb, dto.
Offset
);
929
WriteTimeZone(sb, dto.
Offset
);
937
WriteTimeZone(sb, dto.
Offset
);
System\Xml\Core\XmlWriter.cs (1)
295
if (value.
Offset
!= TimeSpan.Zero) {
System\Xml\Schema\XsdDateTime.cs (1)
204
TimeSpan zoneOffset = dateTimeOffset.
Offset
;