36 references to DateTimeOffset
dotnet-svcutil-lib (4)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (1)
1605return new DateTimeOffset(value);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DateTimeOffsetAdapter.cs (1)
57DateTimeOffset deserialized = new DateTimeOffset(value.UtcDateTime);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityTimestamp.cs (2)
149XmlConvert.ToString(new DateTimeOffset(this.CreationTimeUtc)), 150XmlConvert.ToString(new DateTimeOffset(this.ExpiryTimeUtc)));
InMemory.FunctionalTests (2)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (2)
229new DateTimeOffset(_cert.NotBefore), 230new DateTimeOffset(_cert.NotAfter),
Microsoft.AspNetCore.Authentication (1)
SystemClock.cs (1)
38return new DateTimeOffset(utcNowPrecisionSeconds);
Microsoft.AspNetCore.Authentication.Core.Test (6)
AuthenticationPropertiesTests.cs (6)
199props.IssuedUtc = new DateTimeOffset(new DateTime(2018, 03, 21, 0, 0, 0, DateTimeKind.Utc)); 200Assert.Equal(new DateTimeOffset(new DateTime(2018, 03, 21, 0, 0, 0, DateTimeKind.Utc)), props.IssuedUtc); 213props.ExpiresUtc = new DateTimeOffset(new DateTime(2018, 03, 19, 12, 34, 56, DateTimeKind.Utc)); 214Assert.Equal(new DateTimeOffset(new DateTime(2018, 03, 19, 12, 34, 56, DateTimeKind.Utc)), props.ExpiresUtc); 244props.SetDateTimeOffset("foo", new DateTimeOffset(new DateTime(2018, 03, 19, 12, 34, 56, DateTimeKind.Utc))); 258var dateTimeOffset = new DateTimeOffset(new DateTime(2018, 03, 19, 12, 34, 56, DateTimeKind.Utc));
Microsoft.AspNetCore.Identity (1)
TimeProviderClock.cs (1)
30return new DateTimeOffset(utcNowPrecisionSeconds);
Microsoft.AspNetCore.Identity.Specification.Tests (2)
UserManagerSpecificationTests.cs (2)
1336var lockoutEnd = new DateTimeOffset(DateTime.Now.AddMinutes(30).ToLocalTime()); 1906var lockoutEndDate = new DateTimeOffset(new DateTime(2014, 01, 01));
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (2)
229new DateTimeOffset(_cert.NotBefore), 230new DateTimeOffset(_cert.NotAfter),
Microsoft.Maui.Essentials (1)
WebAuthenticator\WebAuthenticatorResult.shared.cs (1)
71 public DateTimeOffset Timestamp { get; set; } = new DateTimeOffset(DateTime.UtcNow);
Microsoft.Net.Http.Headers.Tests (1)
HeaderUtilitiesTest.cs (1)
30var date = new DateTimeOffset(new DateTime(2018, 1, 1, 1, 1, 1));
System.Formats.Asn1 (1)
System\Formats\Asn1\AsnDecoder.GeneralizedTime.cs (1)
385value = new DateTimeOffset(new DateTime(year, month, day, hour, minute.Value, second.Value));
System.IO.Compression (1)
System\IO\Compression\ZipArchiveEntry.cs (1)
70_lastModified = new DateTimeOffset(ZipHelper.DosTimeToDateTime(cd.LastModified));
System.IO.IsolatedStorage (3)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (3)
243return new DateTimeOffset(File.GetCreationTime(GetFullPath(path))); 259return new DateTimeOffset(File.GetLastAccessTime(GetFullPath(path))); 275return new DateTimeOffset(File.GetLastWriteTime(GetFullPath(path)));
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Parser\Utf8Parser.Date.Helpers.cs (1)
88value = new DateTimeOffset(dateTime);
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (1)
977new DateTimeOffset(dateTime);
src\libraries\System.Private.CoreLib\src\System\IO\FileStatus.Unix.cs (3)
302return new DateTimeOffset(DateTime.FromFileTimeUtc(0)); 326return new DateTimeOffset(DateTime.FromFileTimeUtc(0)); 351return new DateTimeOffset(DateTime.FromFileTimeUtc(0));
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\DateTimeOffsetAdapter.cs (1)
52DateTimeOffset deserialized = new DateTimeOffset(value.UtcDateTime);
System.Private.Windows.Core (1)
System\Value.UtcDateTimeOffsetFlag.cs (1)
12public override DateTimeOffset To(in Value value) => new(new DateTime(value._union.Ticks, DateTimeKind.Utc));
System.Private.Xml (1)
System\Xml\Schema\XmlValueConverter.cs (1)
1374return new DateTimeOffset(value);
System.ServiceModel.Primitives (2)
System\ServiceModel\Security\SecurityTimestamp.cs (2)
143XmlConvert.ToString(new DateTimeOffset(CreationTimeUtc)), 144XmlConvert.ToString(new DateTimeOffset(ExpiryTimeUtc)));
System.Text.Json (1)
System\Text\Json\JsonHelpers.Date.cs (1)
480value = new DateTimeOffset(dateTime);