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