45 references to UtcTicks
Microsoft.AspNetCore.DataProtection.Extensions (1)
TimeLimitedDataProtector.cs (1)
54BitHelpers.WriteUInt64(plaintextWithHeader, 0, (ulong)expiration.UtcTicks);
Microsoft.AspNetCore.Identity (1)
DataProtectorTokenProvider.cs (1)
211writer.Write(value.UtcTicks);
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
RedisOutputCacheStore.cs (1)
470var ticks = value == DateTimeOffset.MinValue ? 0L : value.UtcTicks;
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.TagInvalidation.cs (1)
199internal long CurrentTimestamp() => _clock.GetUtcNow().UtcTicks;
Microsoft.Extensions.Caching.Hybrid.Tests (2)
LocalInvalidationTests.cs (2)
122var now = clock.GetUtcNow().UtcTicks; 127while (clock.GetUtcNow().UtcTicks == now);
Microsoft.Extensions.Caching.Memory (1)
CacheEntry.cs (1)
86_absoluteExpirationTicks = expiration.UtcTicks;
Microsoft.Extensions.Caching.StackExchangeRedis (1)
RedisCache.cs (1)
76var ticks = value == DateTimeOffset.MinValue ? 0L : value.UtcTicks;
System.Private.CoreLib (37)
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (37)
170_dateTime = DateTime.CreateUnchecked(UtcTicks + (uint)millisecond * (uint)TimeSpan.TicksPerMillisecond); 255_dateTime = DateTime.CreateUnchecked(UtcTicks + (uint)microsecond * (uint)TimeSpan.TicksPerMicrosecond); 329_dateTime = DateTime.CreateUnchecked(UtcTicks + (uint)microsecond * (uint)TimeSpan.TicksPerMicrosecond); 349private DateTime ClockDateTime => DateTime.CreateUnchecked(UtcTicks + _offsetMinutes * TimeSpan.TicksPerMinute); 539first.UtcTicks.CompareTo(second.UtcTicks); 554return UtcTicks.CompareTo(other.UtcTicks); 558UtcTicks.CompareTo(other.UtcTicks); 566obj is DateTimeOffset && UtcTicks == ((DateTimeOffset)obj).UtcTicks; 568public bool Equals(DateTimeOffset other) => UtcTicks == other.UtcTicks; 571public bool EqualsExact(DateTimeOffset other) => UtcTicks == other.UtcTicks && _offsetMinutes == other._offsetMinutes; 577public static bool Equals(DateTimeOffset first, DateTimeOffset second) => first.UtcTicks == second.UtcTicks; 644public override int GetHashCode() => UtcTicks.GetHashCode(); 739public TimeSpan Subtract(DateTimeOffset value) => new TimeSpan(UtcTicks - value.UtcTicks); 763long seconds = (long)((ulong)UtcTicks / TimeSpan.TicksPerSecond); 771long milliseconds = (long)((ulong)UtcTicks / TimeSpan.TicksPerMillisecond); 986new TimeSpan(left.UtcTicks - right.UtcTicks); 989left.UtcTicks == right.UtcTicks; 992left.UtcTicks != right.UtcTicks; 996left.UtcTicks < right.UtcTicks; 1000left.UtcTicks <= right.UtcTicks; 1004left.UtcTicks > right.UtcTicks; 1008left.UtcTicks >= right.UtcTicks;