79 references to TimeSpan
mscorlib (29)
system\appdomain.cs (1)
4795return new TimeSpan(i64ProcessorTime);
system\currenttimezone.cs (3)
97TimeSpan offset = new TimeSpan(m_ticksOffset); 221delta = new TimeSpan(rawData[16] * TicksPerMinute); 239return new TimeSpan(TimeZone.CalculateUtcOffset(time, GetDaylightChanges(time.Year)).Ticks + m_ticksOffset);
system\datetime.cs (3)
1254return new TimeSpan(InternalTicks % TicksPerDay); 1333return new TimeSpan(InternalTicks - value.InternalTicks); 1504return new TimeSpan(d1.InternalTicks - d2.InternalTicks);
system\datetimeoffset.cs (1)
76offset = new TimeSpan(0);
system\globalization\datetimeparse.cs (6)
1062result.timeZoneOffset = new TimeSpan(0); 3482result.timeZoneOffset = new TimeSpan(0); 3724TimeSpan tempTimeZoneOffset = new TimeSpan(0); 3744result.timeZoneOffset = new TimeSpan(0); 3767result.timeZoneOffset = new TimeSpan(0); 3772TimeSpan tempTimeZoneOffset = new TimeSpan(0);
system\resources\resourcereader.cs (2)
643return new TimeSpan(_store.ReadInt64()); 737return new TimeSpan(ticks);
system\runtime\remoting\soapinteroptypes.cs (1)
380return new TimeSpan(ticks);
system\runtime\serialization\formatters\binary\binaryparser.cs (1)
357return new TimeSpan(ReadInt64());
system\timespan.cs (10)
66public static readonly TimeSpan Zero = new TimeSpan(0); 68public static readonly TimeSpan MaxValue = new TimeSpan(Int64.MaxValue); 69public static readonly TimeSpan MinValue = new TimeSpan(Int64.MinValue); 160return new TimeSpan(result); 201return new TimeSpan(_ticks >= 0? _ticks: -_ticks); 236return new TimeSpan((long)millis * TicksPerMillisecond); 251return new TimeSpan(-_ticks); 265return new TimeSpan(result); 269return new TimeSpan(value); 343return new TimeSpan(-t._ticks);
system\variant.cs (1)
407return new TimeSpan(GetI8FromVar());
PresentationCore (5)
Core\CSharp\System\Windows\Media\Animation\RepeatBehavior.cs (2)
58_repeatDuration = new TimeSpan(0); 70if (duration < new TimeSpan(0))
Core\CSharp\System\Windows\Media\Animation\TimeManager.cs (3)
80_globalTime = new TimeSpan(-1); 81_lastTickTime = new TimeSpan(-1); 84ParallelTimeline timeManagerTimeline = new ParallelTimeline(new TimeSpan(0), Duration.Forever);
PresentationFramework (1)
src\Framework\System\Windows\Controls\AVElementHelper.cs (1)
69_position = new SettableState<TimeSpan>(new TimeSpan(0));
System (5)
regex\system\text\regularexpressions\Regex.cs (1)
326TimeSpan timeout = new TimeSpan(timeoutTicks);
services\monitoring\system\diagnosticts\Process.cs (3)
2816return new TimeSpan(kernel); 2822return new TimeSpan(user); 2828return new TimeSpan(user + kernel);
services\monitoring\system\diagnosticts\Stopwatch.cs (1)
121get { return new TimeSpan( GetElapsedDateTimeTicks()); }
System.Data (11)
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (1)
2427private static readonly TimeSpan x_timeMax = new TimeSpan(TimeSpan.TicksPerDay - 1);
fx\src\data\System\Data\Common\SQLConvert.cs (4)
555return new TimeSpan((Int64)(Int32)value); 557return new TimeSpan((Int64)value); 700return new TimeSpan((Int64)(Int32)value); 702return new TimeSpan((Int64)value);
fx\src\data\System\Data\Common\TimeSpanStorage.cs (2)
170return new TimeSpan((Int64)((Int32)value)); 173return new TimeSpan((Int64)value);
fx\src\data\System\Data\Sql\SqlMetaData.cs (2)
1032return new TimeSpan(InternalAdjustTimeTicks(value.Ticks)); 1478private static readonly TimeSpan x_timeMax = new TimeSpan(TimeSpan.TicksPerDay - 1);
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (1)
402return new TimeSpan(_value._timeInfo.ticks);
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (1)
220return new TimeSpan(value.m_day * TimeSpan.TicksPerDay +
System.Data.Entity (2)
System\Data\Common\EntitySql\AST\Literal.cs (1)
594ts = ts.Add(new TimeSpan(ticks));
System\Data\EntityModel\SchemaObjectModel\ScalarType.cs (1)
240value = new TimeSpan(temp.Ticks);
System.Data.Linq (1)
DbConvert.cs (1)
124return new TimeSpan((long)Convert.ChangeType(value, typeof(long), Globalization.CultureInfo.InvariantCulture));
System.Messaging (2)
System\Messaging\MessageQueue.cs (2)
1583formatNameCache.ClearStale(new TimeSpan(0)); 1584queueInfoCache.ClearStale(new TimeSpan(0));
System.Runtime.Serialization (1)
System\Xml\ValueHandle.cs (1)
412return new TimeSpan(GetInt64());
System.ServiceModel (5)
System\ServiceModel\Channels\PeerHelpers.cs (3)
117this.maintainerRetryInterval = new TimeSpan(PeerTransportConstants.MaintainerRetryInterval * 10000); 118this.maintainerTimeout = new TimeSpan(PeerTransportConstants.MaintainerTimeout * 10000); 119this.unregisterTimeout = new TimeSpan(PeerTransportConstants.UnregisterTimeout * 10000);
System\ServiceModel\Diagnostics\TraceUtility.cs (1)
534TimeSpan elapsedTime = new TimeSpan(DateTime.UtcNow.Ticks - startTicks);
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (1)
315DateTime effectiveExpirationTime = TimeoutHelper.Add(serviceToken.ValidFrom.ToUniversalTime(), new TimeSpan(effectiveTicksInterval));
System.ServiceModel.Internals (1)
System\Runtime\Ticks.cs (1)
44return new TimeSpan(ticks);
System.Web (4)
HttpCachePolicy.cs (1)
446static TimeSpan s_oneYear = new TimeSpan(TimeSpan.TicksPerDay * 365);
Security\ADMembershipProvider.cs (1)
3833adLockoutDuration = new TimeSpan(-int64Value);
State\SessionStateModule.cs (1)
125static readonly TimeSpan LOCKED_ITEM_POLLING_DELTA = new TimeSpan(250 * TimeSpan.TicksPerMillisecond);
Util\altserialization.cs (1)
239value = new TimeSpan(reader.ReadInt64());
System.Web.DataVisualization (1)
Common\General\ChartElement.cs (1)
1285 TimeSpan span = new TimeSpan(0);
System.Windows.Forms.DataVisualization (1)
Common\General\ChartElement.cs (1)
1285 TimeSpan span = new TimeSpan(0);
System.Workflow.Runtime (4)
Hosting\DefaultWorkflowSchedulerService.cs (1)
23private static TimeSpan infinite = new TimeSpan(Timeout.Infinite);
Hosting\ManualWorkflowSchedulerService.cs (1)
56private static TimeSpan infinite = new TimeSpan(Timeout.Infinite);
Hosting\SqlWorkflowPersistenceService.cs (2)
694TimeSpan infinite = new TimeSpan(Timeout.Infinite); 1196private TimeSpan infinite = new TimeSpan(Timeout.Infinite);
System.Xml (6)
System\Xml\BinaryXml\SqlUtils.cs (2)
799return SQLBaseDate.Add( new TimeSpan( dateticks * TimeSpan.TicksPerDay + 882DateTimeOffset dto = new DateTimeOffset(dateTicks + timeTicks + zoneTicks, new TimeSpan(zoneTicks));
System\Xml\Schema\XsdDateTime.cs (1)
461result = new DateTimeOffset(dt, new TimeSpan( 0 ) );
System\Xml\Schema\XsdDuration.cs (3)
333result = new TimeSpan(Int64.MinValue); 336result = new TimeSpan(-((long) ticks)); 340result = new TimeSpan((long) ticks);