36 references to DateTimeOffset
dotnet-svcutil-lib (4)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (1)
1605
return new
DateTimeOffset
(value);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DateTimeOffsetAdapter.cs (1)
57
DateTimeOffset deserialized = new
DateTimeOffset
(value.UtcDateTime);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityTimestamp.cs (2)
149
XmlConvert.ToString(new
DateTimeOffset
(this.CreationTimeUtc)),
150
XmlConvert.ToString(new
DateTimeOffset
(this.ExpiryTimeUtc)));
InMemory.FunctionalTests (2)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (2)
229
new
DateTimeOffset
(_cert.NotBefore),
230
new
DateTimeOffset
(_cert.NotAfter),
Microsoft.AspNetCore.Authentication (1)
SystemClock.cs (1)
38
return new
DateTimeOffset
(utcNowPrecisionSeconds);
Microsoft.AspNetCore.Authentication.Core.Test (6)
AuthenticationPropertiesTests.cs (6)
199
props.IssuedUtc = new
DateTimeOffset
(new DateTime(2018, 03, 21, 0, 0, 0, DateTimeKind.Utc));
200
Assert.Equal(new
DateTimeOffset
(new DateTime(2018, 03, 21, 0, 0, 0, DateTimeKind.Utc)), props.IssuedUtc);
213
props.ExpiresUtc = new
DateTimeOffset
(new DateTime(2018, 03, 19, 12, 34, 56, DateTimeKind.Utc));
214
Assert.Equal(new
DateTimeOffset
(new DateTime(2018, 03, 19, 12, 34, 56, DateTimeKind.Utc)), props.ExpiresUtc);
244
props.SetDateTimeOffset("foo", new
DateTimeOffset
(new DateTime(2018, 03, 19, 12, 34, 56, DateTimeKind.Utc)));
258
var dateTimeOffset = new
DateTimeOffset
(new DateTime(2018, 03, 19, 12, 34, 56, DateTimeKind.Utc));
Microsoft.AspNetCore.Identity (1)
TimeProviderClock.cs (1)
30
return new
DateTimeOffset
(utcNowPrecisionSeconds);
Microsoft.AspNetCore.Identity.Specification.Tests (2)
UserManagerSpecificationTests.cs (2)
1336
var lockoutEnd = new
DateTimeOffset
(DateTime.Now.AddMinutes(30).ToLocalTime());
1906
var lockoutEndDate = new
DateTimeOffset
(new DateTime(2014, 01, 01));
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (2)
229
new
DateTimeOffset
(_cert.NotBefore),
230
new
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)
30
var date = new
DateTimeOffset
(new DateTime(2018, 1, 1, 1, 1, 1));
System.Formats.Asn1 (1)
System\Formats\Asn1\AsnDecoder.GeneralizedTime.cs (1)
385
value = 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)
243
return new
DateTimeOffset
(File.GetCreationTime(GetFullPath(path)));
259
return new
DateTimeOffset
(File.GetLastAccessTime(GetFullPath(path)));
275
return 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)
88
value = new
DateTimeOffset
(dateTime);
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (1)
977
new
DateTimeOffset
(dateTime);
src\libraries\System.Private.CoreLib\src\System\IO\FileStatus.Unix.cs (3)
302
return new
DateTimeOffset
(DateTime.FromFileTimeUtc(0));
326
return new
DateTimeOffset
(DateTime.FromFileTimeUtc(0));
351
return new
DateTimeOffset
(DateTime.FromFileTimeUtc(0));
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\DateTimeOffsetAdapter.cs (1)
52
DateTimeOffset deserialized = new
DateTimeOffset
(value.UtcDateTime);
System.Private.Windows.Core (1)
System\Value.UtcDateTimeOffsetFlag.cs (1)
12
public override DateTimeOffset To(in Value value) =>
new
(new DateTime(value._union.Ticks, DateTimeKind.Utc));
System.Private.Xml (1)
System\Xml\Schema\XmlValueConverter.cs (1)
1374
return new
DateTimeOffset
(value);
System.ServiceModel.Primitives (2)
System\ServiceModel\Security\SecurityTimestamp.cs (2)
143
XmlConvert.ToString(new
DateTimeOffset
(CreationTimeUtc)),
144
XmlConvert.ToString(new
DateTimeOffset
(ExpiryTimeUtc)));
System.Text.Json (1)
System\Text\Json\JsonHelpers.Date.cs (1)
480
value = new
DateTimeOffset
(dateTime);