55 references to Unspecified
mscorlib (26)
system\datetime.cs (14)
116
public static readonly DateTime MinValue = new DateTime(MinTicks, DateTimeKind.
Unspecified
);
117
public static readonly DateTime MaxValue = new DateTime(MaxTicks, DateTimeKind.
Unspecified
);
161
if (kind < DateTimeKind.
Unspecified
|| kind > DateTimeKind.Local) {
196
if (second == 60 && s_isLeapSecondsSupportedSystem && IsValidTimeWithLeapSeconds(year, month, day, hour, minute, second, DateTimeKind.
Unspecified
))
208
if (kind < DateTimeKind.
Unspecified
|| kind > DateTimeKind.Local) {
246
if (!IsValidTimeWithLeapSeconds(dt.Year, dt.Month, dt.Day, dt.Hour, dt.Minute, 60, DateTimeKind.
Unspecified
))
262
if (second == 60 && s_isLeapSecondsSupportedSystem && IsValidTimeWithLeapSeconds(year, month, day, hour, minute, second, DateTimeKind.
Unspecified
))
282
if (kind < DateTimeKind.
Unspecified
|| kind > DateTimeKind.Local) {
330
if (!IsValidTimeWithLeapSeconds(dt.Year, dt.Month, dt.Day, dt.Hour, dt.Minute, 60, DateTimeKind.
Unspecified
))
343
if (kind < DateTimeKind.
Unspecified
|| kind > DateTimeKind.Local) {
780
return new DateTime(DoubleDateToTicks(d), DateTimeKind.
Unspecified
);
1004
return DateTimeKind.
Unspecified
;
1675
if (s_isLeapSecondsSupportedSystem && IsValidTimeWithLeapSeconds(year, month, day, hour, minute, second, DateTimeKind.
Unspecified
))
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 (2)
2610
Contract.Assert(result.parsedDate.Kind == DateTimeKind.
Unspecified
, "result.parsedDate.Kind == DateTimeKind.Unspecified");
3348
return new DateTime(DateTime.UtcNow.Ticks + result.timeZoneOffset.Ticks, DateTimeKind.
Unspecified
);
system\timezoneinfo.cs (8)
218
kind = DateTimeKind.
Unspecified
;
623
if ( (dateTime.Kind == DateTimeKind.
Unspecified
)
766
if ( ((flags & TimeZoneInfoOptions.NoThrowOnInvalidTime) == 0) && (dateTime.Kind != DateTimeKind.
Unspecified
) && (dateTime.Kind != sourceKind) ) {
802
if (dateTime.Kind != DateTimeKind.
Unspecified
&& sourceKind != DateTimeKind.
Unspecified
3163
if (dateStart.Kind != DateTimeKind.
Unspecified
) {
3167
if (dateEnd.Kind != DateTimeKind.
Unspecified
) {
3434
if (timeOfDay.Kind != DateTimeKind.
Unspecified
) {
System (3)
net\System\Net\mail\SmtpDateTime.cs (3)
135
case DateTimeKind.
Unspecified
:
167
return DateTime.SpecifyKind(this.date, DateTimeKind.
Unspecified
);
331
Debug.Assert(dateValue.Kind == DateTimeKind.
Unspecified
);
System.Activities (1)
System\Activities\Expressions\Literal.cs (1)
111
if (literalValue.Second == 0 && literalValue.Millisecond == 0 && literalValue.Kind == DateTimeKind.
Unspecified
)
System.Data (4)
fx\src\data\System\Data\Common\DateTimeStorage.cs (2)
168
retVal = DateTime.SpecifyKind(tmpValue, DateTimeKind.
Unspecified
);
231
values[i] = DateTime.SpecifyKind(values[i].ToLocalTime(), DateTimeKind.
Unspecified
); //Strip the kind for UnspecifiedLocal.
fx\src\data\System\Data\Filter\FunctionNode.cs (1)
468
case DateTimeKind.
Unspecified
: break;
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (1)
638
if (dt.Kind != System.DateTimeKind.
Unspecified
)
System.Data.Entity.Design (2)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (2)
769
DateTime dateTime = DateTime.SpecifyKind(utc, DateTimeKind.
Unspecified
);
771
return new CodeObjectCreateExpression(TypeReference.DateTime, new CodePrimitiveExpression(dateTime.Ticks), GetEnumValue(DateTimeKind.
Unspecified
));
System.Data.Services (1)
System\Data\Services\Serializers\JsonWriter.cs (1)
271
case DateTimeKind.
Unspecified
:
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.Data.Services.Design (2)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (2)
703
DateTime dateTime = DateTime.SpecifyKind(utc, DateTimeKind.
Unspecified
);
705
return new CodeObjectCreateExpression(TypeReference.DateTime, new CodePrimitiveExpression(dateTime.Ticks), GetEnumValue(DateTimeKind.
Unspecified
));
System.Runtime.Serialization (6)
System\Runtime\Serialization\DateTimeOffsetAdapter.cs (1)
47
case DateTimeKind.
Unspecified
:
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (2)
239
case DateTimeKind.
Unspecified
:
240
return DateTime.SpecifyKind(dateTime.ToLocalTime(), DateTimeKind.
Unspecified
);
System\Runtime\Serialization\Json\JsonWriterDelegator.cs (1)
226
case DateTimeKind.
Unspecified
:
System\Xml\XmlConverter.cs (2)
756
DateTimeKind kind = DateTimeKind.
Unspecified
;
1101
case DateTimeKind.
Unspecified
:
System.ServiceModel.Web (1)
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (1)
513
case DateTimeKind.
Unspecified
:
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 (2)
171
case DateTimeKind.
Unspecified
: kind = XsdDateTimeKind.Unspecified; break;
250
return DateTimeKind.
Unspecified
;
System\Xml\XmlConvert.cs (4)
783
value = new DateTime(value.Ticks, DateTimeKind.
Unspecified
);
1279
dt = new DateTime(dt.Ticks, DateTimeKind.
Unspecified
);
1346
case DateTimeKind.
Unspecified
:
1360
case DateTimeKind.
Unspecified
: