From 0302da2fe196ca73dbaaaf733415742d7f8b32da Mon Sep 17 00:00:00 2001 From: Jose Perez Rodriguez Date: Tue, 23 Aug 2016 09:31:05 -0700 Subject: [PATCH] Adding System.TimeZone Commit migrated from https://github.com/dotnet/coreclr/commit/518057d4429bd8b89898bcb1e7b72ddd3e2ff915 --- src/coreclr/src/mscorlib/model.xml | 17 +++++++++++++++++ src/coreclr/src/mscorlib/ref/mscorlib.cs | 13 +++++++++++++ 2 files changed, 30 insertions(+) diff --git a/src/coreclr/src/mscorlib/model.xml b/src/coreclr/src/mscorlib/model.xml index 49a869c..0c48445 100644 --- a/src/coreclr/src/mscorlib/model.xml +++ b/src/coreclr/src/mscorlib/model.xml @@ -8062,6 +8062,23 @@ + + + + + + + + + + + + + diff --git a/src/coreclr/src/mscorlib/ref/mscorlib.cs b/src/coreclr/src/mscorlib/ref/mscorlib.cs index 04291ae..97f5d20 100644 --- a/src/coreclr/src/mscorlib/ref/mscorlib.cs +++ b/src/coreclr/src/mscorlib/ref/mscorlib.cs @@ -3426,6 +3426,19 @@ namespace System public static bool TryParseExact(string input, string[] formats, System.IFormatProvider formatProvider, System.Globalization.TimeSpanStyles styles, out System.TimeSpan result) { result = default(System.TimeSpan); throw null; } public static bool TryParseExact(string input, string[] formats, System.IFormatProvider formatProvider, out System.TimeSpan result) { result = default(System.TimeSpan); throw null; } } + [System.ObsoleteAttribute("System.TimeZone has been deprecated. Please investigate the use of System.TimeZoneInfo instead.")] + [System.Runtime.InteropServices.ComVisibleAttribute(true)] + public abstract partial class TimeZone + { + protected TimeZone() { } + public abstract string DaylightName { get; } + public abstract string StandardName { get; } + public abstract System.Globalization.DaylightTime GetDaylightChanges(int year); + public abstract System.TimeSpan GetUtcOffset(System.DateTime time); + public virtual bool IsDaylightSavingTime(System.DateTime time) { throw null; } + public static bool IsDaylightSavingTime(System.DateTime time, System.Globalization.DaylightTime daylightTimes) { throw null; } + public virtual System.DateTime ToUniversalTime(System.DateTime time) { throw null; } + } public sealed partial class TimeZoneInfo : System.IEquatable, System.Runtime.Serialization.IDeserializationCallback, System.Runtime.Serialization.ISerializable { internal TimeZoneInfo() { } -- 2.7.4