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