The Labs \ Source Viewer \ SSCLI \ System.Globalization \ DaylightTime

  1. // ==++==
  2. //
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. //
  14. // ==--==
  15. namespace System.Globalization
  16. {
  17.    
  18.     using System;
  19.     // This class represents a starting/ending time for a period of daylight saving time.
  20.     [Serializable()]
  21.     [System.Runtime.InteropServices.ComVisible(true)]
  22.     public class DaylightTime
  23.     {
  24.         internal DateTime m_start;
  25.         internal DateTime m_end;
  26.         internal TimeSpan m_delta;
  27.        
  28.         private DaylightTime()
  29.         {
  30.         }
  31.        
  32.         public DaylightTime(DateTime start, DateTime end, TimeSpan delta)
  33.         {
  34.             m_start = start;
  35.             m_end = end;
  36.             m_delta = delta;
  37.         }
  38.        
  39.         // The start date of a daylight saving period.
  40.         public DateTime Start {
  41.             get { return m_start; }
  42.         }
  43.        
  44.         // The end date of a daylight saving period.
  45.         public DateTime End {
  46.             get { return m_end; }
  47.         }
  48.        
  49.         // Delta to stardard offset in ticks.
  50.         public TimeSpan Delta {
  51.             get { return m_delta; }
  52.         }
  53.        
  54.     }
  55.    
  56. }

Developer Fusion