381 references to Ticks
mscorlib (164)
system\currenttimezone.cs (1)
148long tick = time.Ticks + offset;
system\datetime.cs (6)
241this.dateData = (UInt64)calendar.ToDateTime(year, month, day, hour, minute, second, 0).Ticks; 321Int64 ticks = calendar.ToDateTime(year, month, day, hour, minute, second, 0).Ticks; 355Int64 ticks = calendar.ToDateTime(year, month, day, hour, minute, second, 0).Ticks; 821Int64 ticks = Ticks; 1058long tick = utc.Ticks + offset; 1404long tick = Ticks + offset;
system\datetimeoffset.cs (15)
206return new DateTimeOffset((m_dateTime + offset).Ticks, offset); 217return new DateTime((m_dateTime + Offset).Ticks, DateTimeKind.Unspecified); 333return ClockDateTime.Ticks; 339return UtcDateTime.Ticks; 598return new DateTimeOffset(dateResult.Ticks, offset); 616return new DateTimeOffset(dateResult.Ticks, offset); 639return new DateTimeOffset(dateResult.Ticks, offset); 650return new DateTimeOffset(dateResult.Ticks, offset); 683long seconds = UtcDateTime.Ticks / TimeSpan.TicksPerSecond; 690long milliseconds = UtcDateTime.Ticks / TimeSpan.TicksPerMillisecond; 735result = new DateTimeOffset(dateResult.Ticks, offset); 748result = new DateTimeOffset(dateResult.Ticks, offset); 763result = new DateTimeOffset(dateResult.Ticks, offset); 778result = new DateTimeOffset(dateResult.Ticks, offset); 801Int64 utcTicks = dateTime.Ticks - offset.Ticks;
system\diagnostics\eventing\eventprovider.cs (1)
830if (((DateTime)data).Ticks > UTCMinTicks)
System\Diagnostics\Eventing\TraceLogging\SimpleTypeInfos.cs (1)
903var ticks = value.Ticks;
system\globalization\calendar.cs (7)
247if (ticks < minValue.Ticks || ticks > maxValue.Ticks) { 270long ticks = time.Ticks + millis * TicksPerMillisecond; 445return ((int)((time.Ticks / TicksPerHour) % 24)); 453return (double)((time.Ticks / TicksPerMillisecond) % 1000); 461return ((int)((time.Ticks / TicksPerMinute) % 60)); 486return ((int)((time.Ticks / TicksPerSecond) % 60));
system\globalization\CalendricalCalculationsHelper.cs (2)
72return date.Ticks / GregorianCalendar.TicksPerDay; 77return new DateTime(Math.Min((long)(Math.Floor(numberOfDays) * GregorianCalendar.TicksPerDay), DateTime.MaxValue.Ticks)).Year;
system\globalization\chineselunisolarcalendar.cs (2)
46internal static DateTime maxDate = new DateTime((new DateTime(MAX_GREGORIAN_YEAR, MAX_GREGORIAN_MONTH, MAX_GREGORIAN_DAY, 23, 59, 59, 999)).Ticks + 9999); 377CheckTicksRange(time.Ticks);
system\globalization\datetimeformat.cs (4)
483long fraction = (dateTime.Ticks % Calendar.TicksPerSecond); 723if (timeOnly && dateTime.Ticks < Calendar.TicksPerDay) { 917if (dateTime.Ticks < Calendar.TicksPerDay) { 1031long fraction = dateTime.Ticks % TimeSpan.TicksPerSecond;
system\globalization\datetimeparse.cs (4)
2646Int64 utcTicks = result.parsedDate.Ticks - offsetTicks; 2688long resultTicks = result.parsedDate.Ticks; 2710long resultTicks = result.parsedDate.Ticks; 3348return new DateTime(DateTime.UtcNow.Ticks + result.timeZoneOffset.Ticks, DateTimeKind.Unspecified);
system\globalization\eastasianlunisolarcalendar.cs (13)
54CheckTicksRange(time.Ticks); 157if (ticks < MinSupportedDateTime.Ticks || ticks > MaxSupportedDateTime.Ticks) { 408CheckTicksRange(time.Ticks); 439CheckAddResult(dt.Ticks, MinSupportedDateTime, MaxSupportedDateTime); 445CheckTicksRange(time.Ticks); 462CheckAddResult(dt.Ticks, MinSupportedDateTime, MaxSupportedDateTime); 471CheckTicksRange(time.Ticks); 488CheckTicksRange(time.Ticks); 516CheckTicksRange(time.Ticks); 529CheckTicksRange(time.Ticks); 544CheckTicksRange(time.Ticks); 545return ((DayOfWeek)((int)(time.Ticks / Calendar.TicksPerDay + 1) % 7));
system\globalization\gregoriancalendar.cs (2)
319long ticks = DateToTicks(y, m, d) + time.Ticks % TicksPerDay; 357return ((DayOfWeek)((int)(time.Ticks / TicksPerDay + 1) % 7));
system\globalization\gregoriancalendarhelper.cs (18)
41this.ticks = new DateTime(startYear, startMonth, startDay).Ticks; 51this.ticks = new DateTime(startYear, startMonth, startDay).Ticks; 354if (ticks < m_Cal.MinSupportedDateTime.Ticks || ticks > m_Cal.MaxSupportedDateTime.Ticks) { 395CheckTicksRange(time.Ticks); 397int y = GetDatePart(time.Ticks, DatePartYear); 398int m = GetDatePart(time.Ticks, DatePartMonth); 399int d = GetDatePart(time.Ticks, DatePartDay); 418long ticks = DateToTicks(y, m, d) + (time.Ticks % TicksPerDay); 441return (GetDatePart(time.Ticks, DatePartDay)); 451CheckTicksRange(time.Ticks); 452return ((DayOfWeek)((time.Ticks / TicksPerDay + 1) % 7)); 460return (GetDatePart(time.Ticks, DatePartDayOfYear)); 494long ticks = time.Ticks; 522return (GetDatePart(time.Ticks, DatePartMonth)); 537long ticks = time.Ticks; 552long ticks = time.Ticks; 634CheckTicksRange(time.Ticks);
system\globalization\hebrewcalendar.cs (21)
299internal static readonly DateTime calendarMaxValue = new DateTime((new DateTime(2239, 9, 29, 23, 59, 59, 999)).Ticks + 9999); 441if (ticks < calendarMinValue.Ticks || ticks > calendarMaxValue.Ticks) { 668int y = GetDatePart(time.Ticks, DatePartYear); 669int m = GetDatePart(time.Ticks, DatePartMonth); 670int d = GetDatePart(time.Ticks, DatePartDay); 700return (new DateTime(ToDateTime(y, i, d, 0, 0, 0, 0).Ticks + (time.Ticks % TicksPerDay))); 724int y = GetDatePart(time.Ticks, DatePartYear); 725int m = GetDatePart(time.Ticks, DatePartMonth); 726int d = GetDatePart(time.Ticks, DatePartDay); 741long ticks = ToDateTime(y, m, d, 0, 0, 0, 0).Ticks + (time.Ticks % TicksPerDay); 751return (GetDatePart(time.Ticks, DatePartDay)); 763return ((DayOfWeek)((int)(time.Ticks / TicksPerDay + 1) % 7)); 801return ((int)((time.Ticks - beginOfYearDate.Ticks) / TicksPerDay) + 1); 858return (GetDatePart(time.Ticks, DatePartMonth)); 872return (GetDatePart(time.Ticks, DatePartYear)); 1009return (new DateTime(gregorianNewYear.Ticks + days * TicksPerDay 1021CheckTicksRange(dt.Ticks);
system\globalization\hijricalendar.cs (12)
345if (ticks < calendarMinValue.Ticks || ticks > calendarMaxValue.Ticks) { 512int y = GetDatePart(time.Ticks, DatePartYear); 513int m = GetDatePart(time.Ticks, DatePartMonth); 514int d = GetDatePart(time.Ticks, DatePartDay); 527long ticks = GetAbsoluteDateHijri(y, m, d)* TicksPerDay + (time.Ticks % TicksPerDay); 550return (GetDatePart(time.Ticks, DatePartDay)); 560return ((DayOfWeek)((int)(time.Ticks / TicksPerDay + 1) % 7)); 568return (GetDatePart(time.Ticks, DatePartDayOfYear)); 597CheckTicksRange(time.Ticks); 613return (GetDatePart(time.Ticks, DatePartMonth)); 628return (GetDatePart(time.Ticks, DatePartYear));
system\globalization\japaneselunisolarcalendar.cs (1)
46internal static DateTime maxDate = new DateTime((new DateTime(MAX_GREGORIAN_YEAR, MAX_GREGORIAN_MONTH, MAX_GREGORIAN_DAY, 23, 59, 59, 999)).Ticks + 9999);
system\globalization\juliancalendar.cs (9)
242int y = GetDatePart(time.Ticks, DatePartYear); 243int m = GetDatePart(time.Ticks, DatePartMonth); 244int d = GetDatePart(time.Ticks, DatePartDay); 260long ticks = DateToTicks(y, m, d) + time.Ticks % TicksPerDay; 272return (GetDatePart(time.Ticks, DatePartDay)); 277return ((DayOfWeek)((int)(time.Ticks / TicksPerDay + 1) % 7)); 282return (GetDatePart(time.Ticks, DatePartDayOfYear)); 308return (GetDatePart(time.Ticks, DatePartMonth)); 328return (GetDatePart(time.Ticks, DatePartYear));
system\globalization\koreanlunisolarcalendar.cs (2)
47internal static DateTime maxDate = new DateTime((new DateTime(MAX_GREGORIAN_YEAR, MAX_GREGORIAN_MONTH, MAX_GREGORIAN_DAY, 23, 59, 59, 999)).Ticks + 9999); 1311CheckTicksRange(time.Ticks);
system\globalization\Persiancalendar.cs (13)
33internal static long PersianEpoch = new DateTime(622, 3, 22).Ticks / GregorianCalendar.TicksPerDay; 138if (ticks < minDate.Ticks || ticks > maxDate.Ticks) { 303int y = GetDatePart(time.Ticks, DatePartYear); 304int m = GetDatePart(time.Ticks, DatePartMonth); 305int d = GetDatePart(time.Ticks, DatePartDay); 318long ticks = GetAbsoluteDatePersian(y, m, d) * TicksPerDay + time.Ticks % TicksPerDay; 343return (GetDatePart(time.Ticks, DatePartDay)); 354return ((DayOfWeek)((int)(time.Ticks / TicksPerDay + 1) % 7)); 363return (GetDatePart(time.Ticks, DatePartDayOfYear)); 403CheckTicksRange(time.Ticks); 421return (GetDatePart(time.Ticks, DatePartMonth)); 441return (GetDatePart(time.Ticks, DatePartYear));
system\globalization\taiwanlunisolarcalendar.cs (1)
52internal static DateTime maxDate = new DateTime((new DateTime(MAX_GREGORIAN_YEAR, MAX_GREGORIAN_MONTH, MAX_GREGORIAN_DAY, 23, 59, 59, 999)).Ticks + 9999);
system\globalization\umalquracalendar.cs (14)
259internal static DateTime maxDate = new DateTime((new DateTime(2077, 11, 16, 23, 59, 59, 999)).Ticks + 9999); 381if (ticks < minDate.Ticks || ticks > maxDate.Ticks) { 432Contract.Assert((time.Ticks >= minDate.Ticks) && (time.Ticks <= maxDate.Ticks), "Gregorian date is out of range."); 437index = (int)((time.Ticks - minDate.Ticks) / Calendar.TicksPerDay) / 355; 487long ticks = time.Ticks; 560DateTime dt = new DateTime(GetAbsoluteDateUmAlQura(y, m, d) * TicksPerDay + time.Ticks % TicksPerDay); 561Calendar.CheckAddResult(dt.Ticks, MinSupportedDateTime, MaxSupportedDateTime); 596return ((DayOfWeek)((int)(time.Ticks / TicksPerDay + 1) % 7)); 660CheckTicksRange(time.Ticks);
system\reflection\emit\typebuilder.cs (1)
505long ticks = ((DateTime)value).Ticks;
system\timezone.cs (2)
99long tickCount = time.Ticks - GetUtcOffset(time).Ticks; 118return new DateTime(time.Ticks + offset, DateTimeKind.Local, isAmbiguousLocalDst);
system\timezoneinfo.cs (10)
714Int64 ticks = utcDateTime.Ticks + destinationOffset.Ticks; 734if (dateTime.Ticks == 0) { 807Int64 utcTicks = dateTime.Ticks - sourceOffset.Ticks; 816return new DateTime(targetConverted.Ticks, DateTimeKind.Local, isAmbiguousLocalDst); 819return new DateTime(targetConverted.Ticks, targetKind); 1332if (ticks > DateTime.MaxValue.Ticks) { 1335else if (ticks < DateTime.MinValue.Ticks) { 1346if (ticks > DateTime.MaxValue.Ticks) { 1349else if (ticks < DateTime.MinValue.Ticks) { 3462if (timeOfDayYear != 1 || timeOfDayMonth != 1 || timeOfDayDay != 1 || (timeOfDay.Ticks % TimeSpan.TicksPerMillisecond != 0)) {
system\variant.cs (2)
255ulong ticks = (ulong)val.Ticks; 277ulong ticks = (ulong)((DateTime)obj).Ticks;
PresentationCore (3)
Core\CSharp\System\Windows\LayoutManager.cs (2)
292if(loopStartTime.Ticks == 0) 360if(loopStartTime.Ticks == 0)
Core\CSharp\System\Windows\Media\Animation\TimeManager.cs (1)
466return TimeSpan.FromTicks(DateTime.Now.Ticks);
PresentationFramework (9)
src\Framework\MS\Internal\Data\DataBindEngine.cs (2)
537long startTime = DateTime.Now.Ticks; // unit = 10^-7 sec 563if (DateTime.Now.Ticks - startTime > CrossThreadThreshold)
src\Framework\MS\Internal\Documents\FlowDocumentPaginator.cs (2)
833long timeSpan = (dtStop.Ticks - dtStart.Ticks) / TimeSpan.TicksPerMillisecond;
src\Framework\MS\Internal\Utility\TraceLog.cs (1)
40string s = DateTime.Now.Ticks.ToString(CultureInfo.InvariantCulture)
src\Framework\System\Windows\Data\CollectionView.cs (2)
1876long beginTime = DateTime.Now.Ticks; 1890mustDeferProcessing = DateTime.Now.Ticks - beginTime > DataBindEngine.CrossThreadThreshold;
src\Framework\System\Windows\Documents\Speller.cs (2)
613timeLimit = DateTime.Now.Ticks + MaxIdleTimeSliceNs; 1988long nowTicks = DateTime.Now.Ticks;
System (6)
compmod\system\componentmodel\DateTimeConverter.cs (2)
126if (dt.Ticks == 0) { 133dt.Ticks });
net\System\Net\webclient.cs (1)
624string boundary = "---------------------" + DateTime.Now.Ticks.ToString("x", NumberFormatInfo.InvariantInfo);
services\monitoring\system\diagnosticts\SharedPerformanceCounter.cs (2)
932long tickDelta = (DateTime.Now.Ticks - Volatile.Read(ref LastInstanceLifetimeSweepTick)); 1026Volatile.Write(ref LastInstanceLifetimeSweepTick, DateTime.Now.Ticks);
services\monitoring\system\diagnosticts\Stopwatch.cs (1)
142return DateTime.UtcNow.Ticks;
System.Activities (2)
System\Activities\Expressions\Literal.cs (2)
127if (literalValue.Ticks == noLeftOverTicksDateTime.Ticks)
System.Core (8)
System\Linq\Parallel\Merging\AsynchronousChannelMergeEnumerator.cs (1)
269TraceHelpers.TraceInfo("[timing]: {0}: Completed the merge", DateTime.Now.Ticks);
System\Linq\Parallel\Merging\SynchronousChannelMergeEnumerator.cs (1)
112TraceHelpers.TraceInfo("[timing]: {0}: Completed the merge", DateTime.Now.Ticks);
System\Linq\Parallel\QueryOperators\PartitionedStreamMerger.cs (1)
67TraceHelpers.TraceInfo("[timing]: {0}: finished opening - QueryOperator<>::GetEnumerator", DateTime.Now.Ticks);
System\Linq\Parallel\QueryOperators\QueryOperator.cs (1)
183TraceHelpers.TraceInfo("[timing]: {0}: starting execution - QueryOperator<>::GetQueryResults", DateTime.Now.Ticks);
System\Linq\Parallel\Scheduling\QueryTask.cs (4)
67TraceHelpers.TraceInfo("[timing]: {0}: Running work synchronously", DateTime.Now.Ticks, m_taskIndex); 86TraceHelpers.TraceInfo("[timing]: {0}: Queue work {1} to occur asynchronously", DateTime.Now.Ticks, m_taskIndex); 98TraceHelpers.TraceInfo("[timing]: {0}: Start work {1}", DateTime.Now.Ticks, m_taskIndex); 117TraceHelpers.TraceInfo("[timing]: {0}: End work {1}", DateTime.Now.Ticks, m_taskIndex);
System.Data (11)
fx\src\data\System\Data\ProviderBase\DbBuffer.cs (1)
634int ticks = (int)(value.Ticks % 10000000L)*100;
fx\src\data\System\Data\ProviderBase\DbConnectionInternal.cs (2)
525if ((now.Ticks - _createTime.Ticks) > Pool.LoadBalanceTimeout.Ticks) {
fx\src\data\System\Data\Sql\SqlMetaData.cs (1)
785return new DateTime(InternalAdjustTimeTicks(value.Ticks));
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (6)
2225if (DateTime.UtcNow.Ticks - _lastSuccessfulIOTimer._value > CheckConnectionWindow) { 2260_lastSuccessfulIOTimer._value = DateTime.UtcNow.Ticks; 2287if (DateTime.UtcNow.Ticks - _lastSuccessfulIOTimer._value <= CheckConnectionWindow) { 2417_lastSuccessfulIOTimer._value = DateTime.UtcNow.Ticks; 2593_lastSuccessfulIOTimer._value = DateTime.UtcNow.Ticks; 2979_lastSuccessfulIOTimer._value = DateTime.UtcNow.Ticks;
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (1)
68private static readonly long SQLBaseDateTicks = SQLBaseDate.Ticks;
System.Data.Entity (2)
System\Data\EntityModel\SchemaObjectModel\ScalarType.cs (1)
240value = new TimeSpan(temp.Ticks);
System\Data\Mapping\Update\Internal\Propagator.Evaluator.cs (1)
549return new DateTimeOffset(((DateTime)value).Ticks, TimeSpan.Zero);
System.Data.Entity.Design (1)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
771return new CodeObjectCreateExpression(TypeReference.DateTime, new CodePrimitiveExpression(dateTime.Ticks), GetEnumValue(DateTimeKind.Unspecified));
System.Data.Linq (4)
SqlClient\SqlMethods.cs (4)
438return (int)((endDate.Ticks - startDate.Ticks) / 10); 504return (int)((endDate.Ticks - startDate.Ticks) * 100);
System.Data.Services (3)
System\Data\Services\Serializers\JsonWriter.cs (3)
28internal static readonly long DatetimeMinTimeTicks = (new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).Ticks; 272dateTime = new DateTime(dateTime.Ticks, DateTimeKind.Utc); 283((dateTime.Ticks - DatetimeMinTimeTicks) / 10000)),
System.Data.Services.Client (1)
System\Data\Services\Client\ClientConvert.cs (1)
317return XmlConvert.ToString(dt.Kind == DateTimeKind.Unspecified && atomDateConstruct ? new DateTime(dt.Ticks, DateTimeKind.Utc) : dt, XmlDateTimeSerializationMode.RoundtripKind);
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
705return new CodeObjectCreateExpression(TypeReference.DateTime, new CodePrimitiveExpression(dateTime.Ticks), GetEnumValue(DateTimeKind.Unspecified));
System.Data.SqlXml (1)
System\Xml\Xsl\Runtime\XmlSortKey.cs (1)
327public XmlDateTimeSortKey(DateTime value, XmlCollation collation) : base(value.Ticks, collation) {
System.IdentityModel (11)
System\IdentityModel\DateTimeUtil.cs (2)
54return new DateTime(DateTime.MaxValue.Ticks, kind); 59return new DateTime(DateTime.MinValue.Ticks, kind);
System\IdentityModel\SecurityUtils.cs (2)
56return new DateTime(DateTime.MaxValue.Ticks - TimeSpan.TicksPerDay, DateTimeKind.Utc); 65return new DateTime(DateTime.MinValue.Ticks + TimeSpan.TicksPerDay, DateTimeKind.Utc);
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (2)
48static DateTime WCFMinValue = new DateTime(DateTime.MinValue.Ticks + TimeSpan.TicksPerDay, DateTimeKind.Utc); 49static DateTime WCFMaxValue = new DateTime(DateTime.MaxValue.Ticks - TimeSpan.TicksPerDay, DateTimeKind.Utc);
System\IdentityModel\Tokens\SessionSecurityToken.cs (5)
753XmlUtil.WriteElementContentAsInt64(dicWriter, dictionary.EffectiveTime, dictionary.EmptyString, this.ValidFrom.ToUniversalTime().Ticks); 754XmlUtil.WriteElementContentAsInt64(dicWriter, dictionary.ExpiryTime, dictionary.EmptyString, this.ValidTo.ToUniversalTime().Ticks); 755XmlUtil.WriteElementContentAsInt64(dicWriter, dictionary.KeyEffectiveTime, dictionary.EmptyString, this.KeyEffectiveTime.ToUniversalTime().Ticks); 756XmlUtil.WriteElementContentAsInt64(dicWriter, dictionary.KeyExpiryTime, dictionary.EmptyString, this.KeyExpirationTime.ToUniversalTime().Ticks); 1062rnd = new Random(unchecked((int)DateTime.Now.Ticks));
System.Management (2)
ManagementDatetime.cs (2)
295 System.Int64 microsec = ((date.Ticks-dtTemp.Ticks) * 1000) / System.TimeSpan.TicksPerMillisecond;
System.Messaging (1)
System\Messaging\ActiveXMessageFormatter.cs (1)
326byte[] bytes = BitConverter.GetBytes(((DateTime)obj).Ticks);
System.Runtime.Caching (4)
System\Caching\HostFileChangeMonitor.cs (2)
37uniqueId = path + lastWrite.UtcDateTime.Ticks.ToString("X", CultureInfo.InvariantCulture) + fileSize.ToString("X", CultureInfo.InvariantCulture); 58sb.Append(lastWrite.UtcDateTime.Ticks.ToString("X", CultureInfo.InvariantCulture));
System\Caching\MemoryCacheEntryChangeMonitor.cs (2)
36uniqueId = k + utcCreated.Ticks.ToString("X", CultureInfo.InvariantCulture); 50sb.Append(utcCreated.Ticks.ToString("X", CultureInfo.InvariantCulture));
System.Runtime.Serialization (8)
System\Runtime\Serialization\Json\JsonGlobals.cs (1)
36public static readonly long unixEpochTicks = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).Ticks;
System\Runtime\Serialization\Json\JsonWriterDelegator.cs (5)
208tickCount = value.Ticks - TimeZoneInfo.Local.GetUtcOffset(value).Ticks; 212tickCount = value.Ticks - TimeZone.CurrentTimeZone.GetUtcOffset(value).Ticks; 214if ((tickCount > DateTime.MaxValue.Ticks) || (tickCount < DateTime.MinValue.Ticks)) 222writer.WriteValue((value.ToUniversalTime().Ticks - JsonGlobals.unixEpochTicks) / 10000);
System\Xml\XmlConverter.cs (1)
1093int ms = (int)(value.Ticks % TicksPerSecond);
System\Xml\XmlMtomWriter.cs (1)
366return String.Format(CultureInfo.InvariantCulture, "http://tempuri.org/{0}/{1}", index, DateTime.Now.Ticks);
System.ServiceModel (13)
System\ServiceModel\Diagnostics\TraceUtility.cs (1)
534TimeSpan elapsedTime = new TimeSpan(DateTime.UtcNow.Ticks - startTicks);
System\ServiceModel\Dispatcher\AsyncMethodInvoker.cs (1)
265TraceUtility.UpdateAsyncOperationContextWithStartTime(eventTraceActivity, DateTime.UtcNow.Ticks);
System\ServiceModel\Dispatcher\SecurityImpersonationBehavior.cs (1)
431this.random = new Random(unchecked((int)DateTime.Now.Ticks));
System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (1)
126beginOperation = DateTime.UtcNow.Ticks;
System\ServiceModel\MsmqIntegration\ActiveXSerializer.cs (1)
317byte[] bytes = BitConverter.GetBytes(((DateTime)obj).Ticks);
System\ServiceModel\Security\SecuritySessionClientSettings.cs (2)
1181TimeSpan tokenValidityInterval = TimeSpan.FromTicks((long)(((token.ValidTo.Ticks - token.ValidFrom.Ticks) * this.settings.issuedTokenRenewalThreshold) / 100));
System\ServiceModel\Security\SecurityUtils.cs (2)
374return new DateTime(DateTime.MaxValue.Ticks - TimeSpan.TicksPerDay, DateTimeKind.Utc); 383return new DateTime(DateTime.MinValue.Ticks + TimeSpan.TicksPerDay, DateTimeKind.Utc);
System\ServiceModel\Security\Tokens\SecurityContextCookieSerializer.cs (4)
185XmlHelper.WriteElementContentAsInt64(writer, dictionary.EffectiveTime, dictionary.EmptyString, tokenEffectiveTime.ToUniversalTime().Ticks); 186XmlHelper.WriteElementContentAsInt64(writer, dictionary.ExpiryTime, dictionary.EmptyString, tokenExpirationTime.ToUniversalTime().Ticks); 187XmlHelper.WriteElementContentAsInt64(writer, dictionary.KeyEffectiveTime, dictionary.EmptyString, keyEffectiveTime.ToUniversalTime().Ticks); 188XmlHelper.WriteElementContentAsInt64(writer, dictionary.KeyExpiryTime, dictionary.EmptyString, keyExpirationTime.ToUniversalTime().Ticks);
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\WorkflowOperationContext.cs (1)
460this.beginOperation = DateTime.UtcNow.Ticks;
System.ServiceModel.Web (3)
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (1)
509context.writer.WriteValue((dateTime.ToUniversalTime().Ticks - JsonGlobals.unixEpochTicks) / 10000);
System\ServiceModel\Web\IncomingWebRequestContext.cs (2)
191long ticksDifference = lastModified.ToUniversalTime().Ticks - ifModifiedSince.Value.ToUniversalTime().Ticks;
System.Transactions (3)
System\Transactions\TransactionTable.cs (3)
229return DateTime.UtcNow.Ticks; 262this.lastTimerTime = DateTime.UtcNow.Ticks; 426this.lastTimerTime = DateTime.UtcNow.Ticks;
System.Web (29)
Cache\CacheDependency.cs (1)
747sb.Append(fad.UtcLastWriteTime.Ticks.ToString("d", NumberFormatInfo.InvariantInfo));
Configuration\RemoteWebConfigurationHostServer.cs (6)
56readTime = (DateTime.UtcNow > lastWrite ? DateTime.UtcNow.Ticks : lastWrite.Ticks); 59readTime = DateTime.UtcNow.Ticks; 80if (fileExists && File.GetLastWriteTimeUtc(fileName).Ticks > readTime) { 151lastWriteTicks = File.GetLastWriteTimeUtc(fileName).Ticks; 152utcNowTicks = DateTime.UtcNow.Ticks;
Handlers\AssemblyResourceLoader.cs (1)
152long assemblyDate = File.GetLastWriteTime(new Uri(assemblyName.CodeBase).LocalPath).Ticks;
HttpCachePolicy.cs (3)
745sb.Append(utcFileLastModifiedMax.Ticks.ToString(CultureInfo.InvariantCulture)); 1693utcDate = new DateTime(utcDate.Ticks - (utcDate.Ticks % TimeSpan.TicksPerSecond));
HttpContext.cs (3)
1758Interlocked.Exchange(ref _timeoutStartTimeUtcTicks, DateTime.UtcNow.Ticks); 1786if (expirationUtcTicks < utcNow.Ticks) { 1820if (expirationUtcTicks >= DateTime.UtcNow.Ticks) {
OutputCacheModule.cs (4)
765age = (int) ((context.UtcTimestamp.Ticks - settings.UtcTimestampCreated.Ticks) / TimeSpan.TicksPerSecond); 785fresh = (int) ((settings.UtcExpires.Ticks - context.UtcTimestamp.Ticks) / TimeSpan.TicksPerSecond);
Security\FormsAuthenticationTicketSerializer.cs (2)
179ticketWriter.Write(ticket.IssueDateUtc.Ticks); 194ticketWriter.Write(ticket.ExpirationUtc.Ticks);
State\OutOfProcStateClientManager.cs (1)
492if (0 < results.lockDate && results.lockDate < now.Ticks) {
State\StateRuntime.cs (1)
316response.AppendHeader(StateHeaders.LOCKDATE_NAME_RAW, localLockDate.Ticks.ToString(CultureInfo.InvariantCulture));
StaticFileHandler.cs (2)
528lastModifiedInUtc = new DateTime(utcNow.Ticks - (utcNow.Ticks % TimeSpan.TicksPerSecond), DateTimeKind.Utc);
UI\Page.cs (1)
792long ticks = DateTime.Now.Ticks % 999983;
UI\SessionPageStatePersister.cs (1)
102string sessionViewStateID = Convert.ToString(DateTime.Now.Ticks, 16);
UI\Util.cs (1)
436string uniqueToken = DateTime.Now.Ticks.GetHashCode().ToString("x", CultureInfo.InvariantCulture);
Util\altserialization.cs (1)
67writer.Write(((DateTime) value).Ticks);
Util\HashCodeCombiner.cs (1)
110Debug.Trace("HashCodeCombiner", "Ticks: " + dt.Ticks.ToString("x", CultureInfo.InvariantCulture));
System.Web.DataVisualization (1)
Common\Utilities\XmlSerializer.cs (1)
2718 writer.Write(((DateTime)obj).Ticks);
System.Web.Extensions (3)
Script\Serialization\JavaScriptSerializer.cs (3)
211internal static readonly long DatetimeMinTimeTicks = (new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).Ticks; 218sb.Append((datetime.ToUniversalTime().Ticks - DatetimeMinTimeTicks) / 10000); 225sb.Append((datetime.ToUniversalTime().Ticks - DatetimeMinTimeTicks) / 10000);
System.Web.Mobile (7)
UI\MobileControls\Adapters\ChtmlCalendarAdapter.cs (2)
264return new Triplet(baseState, _chooseOption, visibleDate.Ticks.ToString(CultureInfo.InvariantCulture)); 270visibleDate.Ticks.ToString(CultureInfo.InvariantCulture),
UI\MobileControls\Adapters\WmlCalendarAdapter.cs (2)
247return new Triplet(baseState, _chooseOption, visibleDate.Ticks.ToString(CultureInfo.InvariantCulture)); 253visibleDate.Ticks.ToString(CultureInfo.InvariantCulture),
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicCalendarAdapter.cs (2)
226return new Triplet(baseState, _chooseOption, visibleDate.Ticks.ToString(CultureInfo.InvariantCulture)); 231visibleDate.Ticks.ToString(CultureInfo.InvariantCulture),
UI\MobileControls\MobilePage.cs (1)
555long ticks = DateTime.Now.Ticks % 999983;
System.Web.Services (2)
System\Web\Services\Protocols\SoapServerProtocol.cs (2)
277Int64 nowTicks = DateTime.UtcNow.Ticks; 900if (DateTime.UtcNow.Ticks > readerTimedout) {
System.Windows.Forms (50)
winforms\Managed\System\WinForms\ComboBox.cs (6)
2229this.autoCompleteTimeStamp = DateTime.Now.Ticks; 2240if (DateTime.Now.Ticks - this.autoCompleteTimeStamp > AutoCompleteTimeout || 2253this.autoCompleteTimeStamp = DateTime.Now.Ticks; 2265if (DateTime.Now.Ticks - this.autoCompleteTimeStamp > AutoCompleteTimeout) { 2271this.autoCompleteTimeStamp = DateTime.Now.Ticks; 2284this.autoCompleteTimeStamp = DateTime.Now.Ticks;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2Properties.cs (3)
133touchedTime = DateTime.Now.Ticks; 204return DateTime.Now.Ticks - touchedTime; 218touchedTime = DateTime.Now.Ticks;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (2)
5835(DateTime.Now.Ticks - this.lastMouseClickInfo.timeStamp) / 10000 <= SystemInformation.DoubleClickTime && 25558this.lastMouseClickInfo.timeStamp = DateTime.Now.Ticks;
winforms\Managed\System\WinForms\ListView.cs (1)
3245rnd = new Random((int)System.DateTime.Now.Ticks);
winforms\Managed\System\WinForms\MonthCalendar.cs (32)
2072if (date.Ticks < minDate.Ticks) { 2075if (date.Ticks > maxDate.Ticks) { 2091if (date1.Ticks < minDate.Ticks) { 2094if (date1.Ticks > maxDate.Ticks) { 2097if (date2.Ticks < minDate.Ticks) { 2100if (date2.Ticks > maxDate.Ticks) { 2115if (date1.Ticks == selectionStart.Ticks) { 2138Debug.Assert(lower.Ticks <= upper.Ticks, "lower must be less than upper"); 2300if (start.Ticks < minDate.Ticks || end.Ticks < minDate.Ticks) 2302else if (start.Ticks > maxDate.Ticks || end.Ticks > maxDate.Ticks) 2360if (start.Ticks < minDate.Ticks || end.Ticks < minDate.Ticks) 2362else if (start.Ticks > maxDate.Ticks || end.Ticks > maxDate.Ticks)
winforms\Managed\System\WinForms\NumericUpDown.cs (2)
630long nowTicks = DateTime.Now.Ticks; 693this.buttonPressedStartTime = DateTime.Now.Ticks;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (2)
2806long timeStamp = DateTime.Now.Ticks; 3648rowSelectTime = DateTime.Now.Ticks;
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
2957long newTime = DateTime.Now.Ticks;
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (1)
560long newTime = DateTime.Now.Ticks;
System.Windows.Forms.DataVisualization (1)
Common\Utilities\XmlSerializer.cs (1)
2718 writer.Write(((DateTime)obj).Ticks);
System.Xml (26)
System\Xml\BinaryXml\SqlUtils.cs (3)
978return (int)(dt.Ticks - new DateTime(dt.Year, dt.Month, dt.Day, dt.Hour, dt.Minute, dt.Second).Ticks); 982return (int)(dt.Ticks - new DateTime(dt.Year, dt.Month, dt.Day, dt.Hour, dt.Minute, dt.Second).Ticks);
System\Xml\Schema\XsdDateTime.cs (14)
315get { return (int)(dt.Ticks - new DateTime(dt.Year, dt.Month, dt.Day, dt.Hour, dt.Minute, dt.Second).Ticks); } 345return new DateTime(dt.Ticks, DateTimeKind.Utc); 348return new DateTime(dt.Subtract(new TimeSpan(ZoneHour, ZoneMinute, 0)).Ticks, DateTimeKind.Utc); 351return new DateTime(dt.Add(new TimeSpan(ZoneHour, ZoneMinute, 0)).Ticks, DateTimeKind.Utc); 399result = new DateTime(result.Ticks, DateTimeKind.Utc); 403ticks = result.Ticks - new TimeSpan(xdt.ZoneHour, xdt.ZoneMinute, 0).Ticks; 404if (ticks < DateTime.MinValue.Ticks) 408if (ticks < DateTime.MinValue.Ticks) 409ticks = DateTime.MinValue.Ticks; 416ticks = result.Ticks + new TimeSpan(xdt.ZoneHour, xdt.ZoneMinute, 0).Ticks; 417if (ticks > DateTime.MaxValue.Ticks) 421if (ticks > DateTime.MaxValue.Ticks) 422ticks = DateTime.MaxValue.Ticks;
System\Xml\Serialization\CodeGenerator.cs (1)
1109Ldc(((DateTime)o).Ticks); // ticks
System\Xml\Serialization\XmlCodeExporter.cs (3)
259ticks = (new DateTime(dt.Year, dt.Month, dt.Day)).Ticks; 263ticks = dt.Ticks; 267ticks = dt.Ticks;
System\Xml\Serialization\XmlSerializationWriter.cs (1)
3115Writer.Write(((DateTime)value).Ticks.ToString(CultureInfo.InvariantCulture));
System\Xml\XmlConvert.cs (4)
783value = new DateTime(value.Ticks, DateTimeKind.Unspecified); 1279dt = new DateTime(dt.Ticks, DateTimeKind.Unspecified); 1347return new DateTime(value.Ticks, DateTimeKind.Local); 1361return new DateTime(value.Ticks, DateTimeKind.Utc);