64 references to DateTime
mscorlib (23)
system\currenttimezone.cs (2)
150
return new
DateTime
(DateTime.MaxTicks, DateTimeKind.Local);
153
return new
DateTime
(DateTime.MinTicks, DateTimeKind.Local);
system\datetime.cs (11)
116
public static readonly DateTime MinValue = new
DateTime
(MinTicks, DateTimeKind.Unspecified);
117
public static readonly DateTime MaxValue = new
DateTime
(MaxTicks, DateTimeKind.Unspecified);
724
DateTime utcDt = new
DateTime
(ticks, DateTimeKind.Utc);
774
return new
DateTime
(universalTicks, DateTimeKind.Utc);
780
return new
DateTime
(DoubleDateToTicks(d), DateTimeKind.Unspecified);
805
return new
DateTime
(value.InternalTicks, kind);
1060
return new
DateTime
(DateTime.MaxTicks, DateTimeKind.Local);
1063
return new
DateTime
(DateTime.MinTicks, DateTimeKind.Local);
1410
return new
DateTime
(DateTime.MaxTicks, DateTimeKind.Local);
1417
return new
DateTime
(DateTime.MinTicks, DateTimeKind.Local);
1696
result = new
DateTime
(ticks, DateTimeKind.Unspecified);
system\datetimeoffset.cs (2)
217
return new
DateTime
((m_dateTime + Offset).Ticks, DateTimeKind.Unspecified);
807
return new
DateTime
(utcTicks, DateTimeKind.Unspecified);
system\globalization\datetimeparse.cs (4)
2673
result.parsedDate = new
DateTime
(utcTicks, DateTimeKind.Utc);
2698
result.parsedDate = new
DateTime
(resultTicks, DateTimeKind.Utc);
2736
DateTime utcDt = new
DateTime
(resultTicks, DateTimeKind.Utc);
3348
return new
DateTime
(DateTime.UtcNow.Ticks + result.timeZoneOffset.Ticks, DateTimeKind.Unspecified);
system\timezone.cs (3)
101
return new
DateTime
(DateTime.MaxTicks, DateTimeKind.Utc);
104
return new
DateTime
(DateTime.MinTicks, DateTimeKind.Utc);
106
return new
DateTime
(tickCount, DateTimeKind.Utc);
system\timezoneinfo.cs (1)
819
return new
DateTime
(targetConverted.Ticks, targetKind);
System.Data.Services (2)
System\Data\Services\Serializers\JsonReader.cs (1)
93
DateTime dateTime = new
DateTime
(ticks * 10000 + JsonWriter.DatetimeMinTimeTicks, DateTimeKind.Utc);
System\Data\Services\Serializers\JsonWriter.cs (1)
272
dateTime = new
DateTime
(dateTime.Ticks, DateTimeKind.Utc);
System.Data.Services.Client (1)
System\Data\Services\Client\ClientConvert.cs (1)
317
return XmlConvert.ToString(dt.Kind == DateTimeKind.Unspecified && atomDateConstruct ? new
DateTime
(dt.Ticks, DateTimeKind.Utc) : dt, XmlDateTimeSerializationMode.RoundtripKind);
System.IdentityModel (10)
System\IdentityModel\DateTimeUtil.cs (2)
54
return new
DateTime
(DateTime.MaxValue.Ticks, kind);
59
return new
DateTime
(DateTime.MinValue.Ticks, kind);
System\IdentityModel\SecurityUtils.cs (2)
56
return new
DateTime
(DateTime.MaxValue.Ticks - TimeSpan.TicksPerDay, DateTimeKind.Utc);
65
return new
DateTime
(DateTime.MinValue.Ticks + TimeSpan.TicksPerDay, DateTimeKind.Utc);
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (2)
48
static DateTime WCFMinValue = new
DateTime
(DateTime.MinValue.Ticks + TimeSpan.TicksPerDay, DateTimeKind.Utc);
49
static DateTime WCFMaxValue = new
DateTime
(DateTime.MaxValue.Ticks - TimeSpan.TicksPerDay, DateTimeKind.Utc);
System\IdentityModel\Tokens\SessionSecurityToken.cs (4)
465
DateTime effectiveTime = new
DateTime
(XmlUtil.ReadElementContentAsInt64(reader), DateTimeKind.Utc);
471
DateTime expiryTime = new
DateTime
(XmlUtil.ReadElementContentAsInt64(reader), DateTimeKind.Utc);
477
DateTime keyEffectiveTime = new
DateTime
(XmlUtil.ReadElementContentAsInt64(reader), DateTimeKind.Utc);
483
DateTime keyExpiryTime = new
DateTime
(XmlUtil.ReadElementContentAsInt64(reader), DateTimeKind.Utc);
System.Runtime.Caching (1)
System\Caching\MemoryCacheEntryChangeMonitor.cs (1)
15
private static readonly DateTime DATETIME_MINVALUE_UTC = new
DateTime
(0, DateTimeKind.Utc);
System.Runtime.Serialization (1)
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (1)
234
DateTime dateTime = new
DateTime
(ticks, DateTimeKind.Utc);
System.ServiceModel (6)
System\ServiceModel\Security\SecurityUtils.cs (2)
374
return new
DateTime
(DateTime.MaxValue.Ticks - TimeSpan.TicksPerDay, DateTimeKind.Utc);
383
return new
DateTime
(DateTime.MinValue.Ticks + TimeSpan.TicksPerDay, DateTimeKind.Utc);
System\ServiceModel\Security\Tokens\SecurityContextCookieSerializer.cs (4)
70
effectiveTime = new
DateTime
(XmlHelper.ReadElementContentAsInt64(reader), DateTimeKind.Utc);
74
expiryTime = new
DateTime
(XmlHelper.ReadElementContentAsInt64(reader), DateTimeKind.Utc);
86
keyEffectiveTime = new
DateTime
(XmlHelper.ReadElementContentAsInt64(reader), DateTimeKind.Utc);
90
keyExpirationTime = new
DateTime
(XmlHelper.ReadElementContentAsInt64(reader), DateTimeKind.Utc);
System.Web (7)
Security\FormsAuthenticationTicketSerializer.cs (2)
69
DateTime ticketIssueDateUtc = new
DateTime
(ticketIssueDateUtcTicks, DateTimeKind.Utc);
82
DateTime ticketExpirationDateUtc = new
DateTime
(ticketExpirationDateUtcTicks, DateTimeKind.Utc);
StaticFileHandler.cs (1)
528
lastModifiedInUtc = new
DateTime
(utcNow.Ticks - (utcNow.Ticks % TimeSpan.TicksPerSecond), DateTimeKind.Utc);
Util\DateTimeUtil.cs (1)
31
return new
DateTime
(universalTicks, DateTimeKind.Utc);
Util\FileUtil.cs (3)
596
UtcCreationTime = new
DateTime
(0, DateTimeKind.Utc);
597
UtcLastAccessTime = new
DateTime
(0, DateTimeKind.Utc);
598
UtcLastWriteTime = new
DateTime
(0, DateTimeKind.Utc);
System.Web.Extensions (1)
Script\Serialization\JavaScriptObjectDeserializer.cs (1)
380
DateTime dt = new
DateTime
(ticks * 10000 + JavaScriptSerializer.DatetimeMinTimeTicks, DateTimeKind.Utc);
System.Xml (12)
System\Xml\Schema\XsdDateTime.cs (8)
345
return new
DateTime
(dt.Ticks, DateTimeKind.Utc);
348
return new
DateTime
(dt.Subtract(new TimeSpan(ZoneHour, ZoneMinute, 0)).Ticks, DateTimeKind.Utc);
351
return new
DateTime
(dt.Add(new TimeSpan(ZoneHour, ZoneMinute, 0)).Ticks, DateTimeKind.Utc);
399
result = new
DateTime
(result.Ticks, DateTimeKind.Utc);
410
return new
DateTime
(ticks, DateTimeKind.Local);
412
result = new
DateTime
(ticks, DateTimeKind.Utc).ToLocalTime();
423
return new
DateTime
(ticks, DateTimeKind.Local);
425
result = new
DateTime
(ticks, DateTimeKind.Utc).ToLocalTime();
System\Xml\XmlConvert.cs (4)
783
value = new
DateTime
(value.Ticks, DateTimeKind.Unspecified);
1279
dt = new
DateTime
(dt.Ticks, DateTimeKind.Unspecified);
1347
return new
DateTime
(value.Ticks, DateTimeKind.Local);
1361
return new
DateTime
(value.Ticks, DateTimeKind.Utc);