91 references to Kind
mscorlib (44)
system\currenttimezone.cs (2)
143
if (time.
Kind
== DateTimeKind.Local) {
235
if (time.
Kind
== DateTimeKind.Utc) {
system\datetime.cs (5)
798
if (
Kind
== DateTimeKind.Utc) {
809
if (
Kind
== DateTimeKind.Local) {
1053
Contract.Ensures(Contract.Result<DateTime>().
Kind
== DateTimeKind.Local);
1072
Contract.Ensures(Contract.Result<DateTime>().
Kind
== DateTimeKind.Utc);
1398
if (
Kind
== DateTimeKind.Local) {
system\datetimeoffset.cs (7)
71
if (dateTime.
Kind
!= DateTimeKind.Utc) {
86
if (dateTime.
Kind
== DateTimeKind.Local) {
91
else if (dateTime.
Kind
== DateTimeKind.Utc) {
190
Contract.Ensures(Contract.Result<DateTime>().
Kind
== DateTimeKind.Utc);
198
Contract.Ensures(Contract.Result<DateTime>().
Kind
== DateTimeKind.Local);
500
return (ClockDateTime == other.ClockDateTime && Offset == other.Offset && ClockDateTime.
Kind
== other.ClockDateTime.
Kind
);
system\globalization\datetimeformat.cs (3)
727
} else if (dateTime.
Kind
== DateTimeKind.Utc) {
776
switch (dateTime.
Kind
) {
881
else if (dateTime.
Kind
== DateTimeKind.Local) {
system\globalization\datetimeparse.cs (1)
2610
Contract.Assert(result.parsedDate.
Kind
== DateTimeKind.Unspecified, "result.parsedDate.Kind == DateTimeKind.Unspecified");
system\timezone.cs (3)
96
if (time.
Kind
== DateTimeKind.Utc) {
113
if (time.
Kind
== DateTimeKind.Local) {
200
DateTimeKind kind = time.
Kind
;
system\timezoneinfo.cs (23)
383
if (dateTime.
Kind
== DateTimeKind.Local) {
387
else if (dateTime.
Kind
== DateTimeKind.Utc) {
448
if (dateTime.
Kind
== DateTimeKind.Local) {
472
else if (dateTime.
Kind
== DateTimeKind.Utc) {
514
if (dateTime.
Kind
== DateTimeKind.Local) {
518
else if (dateTime.
Kind
== DateTimeKind.Utc) {
579
if (dateTime.
Kind
== DateTimeKind.Local) {
582
else if (dateTime.
Kind
== DateTimeKind.Utc) {
623
if ( (dateTime.
Kind
== DateTimeKind.Unspecified)
624
|| (dateTime.
Kind
== DateTimeKind.Local && s_cachedData.GetCorrespondingKind(this) == DateTimeKind.Local) ) {
672
if (dateTime.
Kind
== DateTimeKind.Local && String.Compare(sourceTimeZoneId, TimeZoneInfo.Local.Id, StringComparison.OrdinalIgnoreCase) == 0) {
681
else if (dateTime.
Kind
== DateTimeKind.Utc && String.Compare(sourceTimeZoneId, TimeZoneInfo.Utc.Id, StringComparison.OrdinalIgnoreCase) == 0) {
738
if (dateTime.
Kind
== DateTimeKind.Utc) {
766
if ( ((flags & TimeZoneInfoOptions.NoThrowOnInvalidTime) == 0) && (dateTime.
Kind
!= DateTimeKind.Unspecified) && (dateTime.
Kind
!= sourceKind) ) {
802
if (dateTime.
Kind
!= DateTimeKind.Unspecified && sourceKind != DateTimeKind.Unspecified
843
if (dateTime.
Kind
== DateTimeKind.Utc) {
852
if (dateTime.
Kind
== DateTimeKind.Utc) {
1486
if (time.
Kind
== DateTimeKind.Local) {
1519
if (isDst && time.
Kind
== DateTimeKind.Local) {
3163
if (dateStart.
Kind
!= DateTimeKind.Unspecified) {
3167
if (dateEnd.
Kind
!= DateTimeKind.Unspecified) {
3434
if (timeOfDay.
Kind
!= DateTimeKind.Unspecified) {
System (2)
net\System\Net\mail\SmtpDateTime.cs (2)
127
switch (value.
Kind
)
331
Debug.Assert(dateValue.
Kind
== DateTimeKind.Unspecified);
System.Activities (2)
System\Activities\Expressions\Literal.cs (2)
111
if (literalValue.Second == 0 && literalValue.Millisecond == 0 && literalValue.
Kind
== DateTimeKind.Unspecified)
125
literalValue.
Kind
);
System.Data (8)
fx\src\data\System\Data\Common\DateTimeStorage.cs (4)
145
if (tmpValue.
Kind
== DateTimeKind.Utc) {
148
else if (tmpValue.
Kind
== DateTimeKind.Local) {
156
if (tmpValue.
Kind
== DateTimeKind.Local) {
159
else if (tmpValue.
Kind
== DateTimeKind.Utc) {
fx\src\data\System\Data\Common\ObjectStorage.cs (2)
432
if (dt.
Kind
== DateTimeKind.Local) {
443
if (dt.
Kind
== DateTimeKind.Local) {
fx\src\data\System\Data\Filter\FunctionNode.cs (1)
457
switch (((DateTime)argumentValues[0]).
Kind
) {
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (1)
638
if (dt.
Kind
!= System.DateTimeKind.Unspecified)
System.Data.Services (2)
System\Data\Services\Serializers\JsonWriter.cs (2)
266
switch (dateTime.
Kind
)
278
System.Diagnostics.Debug.Assert(dateTime.
Kind
== DateTimeKind.Utc, "dateTime.Kind == 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 (9)
System\IdentityModel\BoundedCache.cs (1)
376
if (expirationTime.
Kind
!= DateTimeKind.Utc)
System\IdentityModel\DateTimeUtil.cs (4)
24
return GetMaxValue(time.
Kind
);
29
return GetMinValue(time.
Kind
);
64
if (null == value || value.Value.
Kind
== DateTimeKind.Utc)
74
if (value.
Kind
== DateTimeKind.Utc)
System\IdentityModel\Selectors\X509CertificateValidator.cs (4)
161
DiagnosticUtility.DebugAssert(now.
Kind
== certificate.NotAfter.
Kind
&& now.
Kind
== certificate.NotBefore.
Kind
, "");
System.Runtime.Serialization (4)
System\Runtime\Serialization\DateTimeOffsetAdapter.cs (1)
45
switch (value.UtcDateTime.
Kind
)
System\Runtime\Serialization\Json\JsonWriterDelegator.cs (2)
203
if (value.
Kind
!= DateTimeKind.Utc)
224
switch (value.
Kind
)
System\Xml\XmlConverter.cs (1)
1099
switch (value.
Kind
)
System.ServiceModel (7)
System\ServiceModel\Dispatcher\XPathMessageContext.cs (1)
416
if (date.
Kind
!= DateTimeKind.Utc)
System\ServiceModel\Security\SecurityTimestamp.cs (2)
32
Fx.Assert(creationTimeUtc.
Kind
== DateTimeKind.Utc, "creation time must be in UTC");
33
Fx.Assert(expiryTimeUtc.
Kind
== DateTimeKind.Utc, "expiry time must be in UTC");
System\ServiceModel\Security\TimeBoundedCache.cs (4)
348
Fx.Assert(item.ExpirationTime == DateTime.MaxValue || item.ExpirationTime.
Kind
== DateTimeKind.Utc, "");
480
Fx.Assert(item1.ExpirationTime.
Kind
== item2.ExpirationTime.
Kind
, "");
504
Fx.Assert( expirationTime == DateTime.MaxValue || expirationTime.
Kind
== DateTimeKind.Utc, "");
System.ServiceModel.Web (2)
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (1)
511
switch (dateTime.
Kind
)
System\ServiceModel\Web\OutgoingWebResponseContext.cs (1)
73
(value.
Kind
== DateTimeKind.Utc ?
System.Web (2)
Profile\ProfileInfo.cs (2)
37
if (lastActivityDate.
Kind
== DateTimeKind.Local) {
41
if (lastUpdatedDate.
Kind
== DateTimeKind.Local) {
System.Xml (8)
System\Xml\Schema\DataTypeImplementation.cs (2)
1846
if (dateTime1.
Kind
== DateTimeKind.Unspecified || dateTime2.
Kind
== DateTimeKind.Unspecified) { //If either of them are unspecified, do not convert zones
System\Xml\Schema\XsdDateTime.cs (3)
170
switch (dateTime.
Kind
) {
175
Debug.Assert(dateTime.
Kind
== DateTimeKind.Local, "Unknown DateTimeKind: " + dateTime.
Kind
);
System\Xml\Serialization\Xmlcustomformatter.cs (1)
78
if (!LocalAppContextSwitches.IgnoreKindInUtcTimeSerialization && value.
Kind
== DateTimeKind.Utc)
System\Xml\XmlConvert.cs (2)
1342
switch (value.
Kind
) {
1356
switch (value.
Kind
) {