69 references to Local
mscorlib (46)
system\currenttimezone.cs (7)
143
if (time.Kind == DateTimeKind.
Local
) {
150
return new DateTime(DateTime.MaxTicks, DateTimeKind.
Local
);
153
return new DateTime(DateTime.MinTicks, DateTimeKind.
Local
);
155
return new DateTime(tick, DateTimeKind.
Local
, isAmbiguousLocalDst);
260
hour, minute, second, millisecond, DateTimeKind.
Local
);
267
time = new DateTime(year, month, 1, hour, minute, second, millisecond, DateTimeKind.
Local
);
284
time = new DateTime(year, month, cal.GetDaysInMonth(year, month), hour, minute, second, millisecond, DateTimeKind.
Local
);
system\datetime.cs (17)
161
if (kind < DateTimeKind.Unspecified || kind > DateTimeKind.
Local
) {
172
Contract.Requires(kind == DateTimeKind.
Local
, "Internal Constructor is for local times only");
208
if (kind < DateTimeKind.Unspecified || kind > DateTimeKind.
Local
) {
282
if (kind < DateTimeKind.Unspecified || kind > DateTimeKind.
Local
) {
343
if (kind < DateTimeKind.Unspecified || kind > DateTimeKind.
Local
) {
737
return new DateTime(ticks, DateTimeKind.
Local
, isAmbiguousLocalDst);
809
if (Kind == DateTimeKind.
Local
) {
1008
return DateTimeKind.
Local
;
1053
Contract.Ensures(Contract.Result<DateTime>().Kind == DateTimeKind.
Local
);
1060
return new DateTime(DateTime.MaxTicks, DateTimeKind.
Local
);
1063
return new DateTime(DateTime.MinTicks, DateTimeKind.
Local
);
1065
return new DateTime(tick, DateTimeKind.
Local
, isAmbiguousLocalDst);
1221
case DateTimeKind.
Local
: return ValidateSystemTime(ref time, localTime: true);
1398
if (Kind == DateTimeKind.
Local
) {
1410
return new DateTime(DateTime.MaxTicks, DateTimeKind.
Local
);
1417
return new DateTime(DateTime.MinTicks, DateTimeKind.
Local
);
1419
return new DateTime(tick, DateTimeKind.
Local
, isAmbiguousLocalDst);
system\datetimeoffset.cs (2)
86
if (dateTime.Kind == DateTimeKind.
Local
) {
198
Contract.Ensures(Contract.Result<DateTime>().Kind == DateTimeKind.
Local
);
system\globalization\datetimeformat.cs (3)
737
dateTime = DateTime.SpecifyKind(dateTime, DateTimeKind.
Local
);
777
case DateTimeKind.
Local
:
881
else if (dateTime.Kind == DateTimeKind.
Local
) {
system\globalization\datetimeparse.cs (2)
2594
result.parsedDate = DateTime.SpecifyKind(result.parsedDate, DateTimeKind.
Local
);
2746
result.parsedDate = new DateTime(resultTicks, DateTimeKind.
Local
, isAmbiguousLocalDst);
system\timezone.cs (2)
113
if (time.Kind == DateTimeKind.
Local
) {
118
return new DateTime(time.Ticks + offset, DateTimeKind.
Local
, isAmbiguousLocalDst);
system\timezoneinfo.cs (13)
215
kind = DateTimeKind.
Local
;
383
if (dateTime.Kind == DateTimeKind.
Local
) {
448
if (dateTime.Kind == DateTimeKind.
Local
) {
449
if (cachedData.GetCorrespondingKind(this) != DateTimeKind.
Local
) {
514
if (dateTime.Kind == DateTimeKind.
Local
) {
579
if (dateTime.Kind == DateTimeKind.
Local
) {
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) {
813
if (targetKind == DateTimeKind.
Local
) {
816
return new DateTime(targetConverted.Ticks, DateTimeKind.
Local
, isAmbiguousLocalDst);
1486
if (time.Kind == DateTimeKind.
Local
) {
1519
if (isDst && time.Kind == DateTimeKind.
Local
) {
System (1)
net\System\Net\mail\SmtpDateTime.cs (1)
129
case DateTimeKind.
Local
:
System.Data (7)
fx\src\data\System\Data\Common\DateTimeStorage.cs (3)
148
else if (tmpValue.Kind == DateTimeKind.
Local
) {
156
if (tmpValue.Kind == DateTimeKind.
Local
) {
163
retVal = DateTime.SpecifyKind(tmpValue, DateTimeKind.
Local
);
fx\src\data\System\Data\Common\ObjectStorage.cs (3)
432
if (dt.Kind == DateTimeKind.
Local
) {
433
typedStore[storeIndex] = DateTime.SpecifyKind(dt.ToUniversalTime(), DateTimeKind.
Local
);
443
if (dt.Kind == DateTimeKind.
Local
) {
fx\src\data\System\Data\Filter\FunctionNode.cs (1)
463
case DateTimeKind.
Local
:
System.Data.Services (1)
System\Data\Services\Serializers\JsonWriter.cs (1)
268
case DateTimeKind.
Local
:
System.Runtime.Serialization (4)
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (2)
208
dateTimeKind = DateTimeKind.
Local
;
237
case DateTimeKind.
Local
:
System\Runtime\Serialization\Json\JsonWriterDelegator.cs (1)
227
case DateTimeKind.
Local
:
System\Xml\XmlConverter.cs (1)
1103
case DateTimeKind.
Local
:
System.ServiceModel.Web (1)
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (1)
514
case DateTimeKind.
Local
:
System.Web (2)
Profile\ProfileInfo.cs (2)
37
if (lastActivityDate.Kind == DateTimeKind.
Local
) {
41
if (lastUpdatedDate.Kind == DateTimeKind.
Local
) {
System.Xml (7)
System\Xml\Schema\XsdDateTime.cs (4)
175
Debug.Assert(dateTime.Kind == DateTimeKind.
Local
, "Unknown DateTimeKind: " + dateTime.Kind);
256
return DateTimeKind.
Local
;
410
return new DateTime(ticks, DateTimeKind.
Local
);
423
return new DateTime(ticks, DateTimeKind.
Local
);
System\Xml\XmlConvert.cs (3)
1343
case DateTimeKind.
Local
:
1347
return new DateTime(value.Ticks, DateTimeKind.
Local
);
1363
case DateTimeKind.
Local
: