DaylightTime.cs 629 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // System.Globalization.DaylightTime
  3. //
  4. // Author:
  5. // Chris Hynes ([email protected])
  6. //
  7. // (C) 2001 Chris Hynes
  8. //
  9. using System.Globalization;
  10. namespace System.Globalization
  11. {
  12. [Serializable]
  13. public class DaylightTime
  14. {
  15. DateTime start, end;
  16. TimeSpan delta;
  17. public DaylightTime(DateTime start, DateTime end, TimeSpan delta)
  18. {
  19. this.start = start;
  20. this.end = end;
  21. this.delta = delta;
  22. }
  23. public DateTime Start
  24. {
  25. get
  26. {
  27. return start;
  28. }
  29. }
  30. public DateTime End
  31. {
  32. get
  33. {
  34. return end;
  35. }
  36. }
  37. public TimeSpan Delta
  38. {
  39. get
  40. {
  41. return delta;
  42. }
  43. }
  44. }
  45. }