Adding System.TimeZone
authorJose Perez Rodriguez <joperezr@microsoft.com>
Tue, 23 Aug 2016 16:31:05 +0000 (09:31 -0700)
committerJose Perez Rodriguez <joperezr@microsoft.com>
Tue, 23 Aug 2016 19:22:07 +0000 (12:22 -0700)
src/mscorlib/model.xml
src/mscorlib/ref/mscorlib.cs

index 49a869c..0c48445 100644 (file)
       <Member MemberType="Property" Name="TotalMinutes" />
       <Member MemberType="Property" Name="TotalSeconds" />
     </Type>
+    <Type Name="System.TimeZone">
+      <Member Name="#ctor" />
+      <Member Name="get_DaylightName" />
+      <Member Name="get_StandardName" />
+      <Member Name="GetDaylightChanges(System.Int32)" />
+      <Member Name="GetUtcOffset(System.DateTime)" />
+      <Member Name="IsDaylightSavingTime(System.DateTime)" />
+      <Member Name="IsDaylightSavingTime(System.DateTime,System.Globalization.DaylightTime)" />
+      <Member Name="ToUniversalTime(System.DateTime)" />
+      <Member MemberType="Property" Name="DaylightName" />
+      <Member MemberType="Property" Name="StandardName" />
+<!-- This members need CurrentSystemTimeZone which needs Linux implementations
+      <Member Name="ToLocalTime(System.DateTime)" />
+      <Member MemberType="Property" Name="CurrentTimeZone" />
+      <Member Name="get_CurrentTimeZone" />
+-->
+    </Type>
     <Type Name="System.TimeZoneInfo">
       <Member Status="ImplRoot" Name="#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)" />
       <Member Name="ClearCachedData" />
index 04291ae..97f5d20 100644 (file)
@@ -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.TimeZoneInfo>, System.Runtime.Serialization.IDeserializationCallback, System.Runtime.Serialization.ISerializable
     {
         internal TimeZoneInfo() { }