DataSetDateTime.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334
  1. //------------------------------------------------------------------------------
  2. // <copyright file="DataSetDateTime.cs" company="Microsoft">
  3. // Copyright (c) Microsoft Corporation. All rights reserved.
  4. // </copyright>
  5. // <owner current="true" primary="true">[....]</owner>
  6. // <owner current="true" primary="false">[....]</owner>
  7. //------------------------------------------------------------------------------
  8. namespace System.Data {
  9. using System;
  10. /// <devdoc>
  11. /// <para>Gets the DateTimeMode of a DateTime <see cref='System.Data.DataColumn'/> object.</para>
  12. /// </devdoc>
  13. public enum DataSetDateTime {
  14. /// <devdoc>
  15. /// <para>The datetime column in Local DateTimeMode stores datetime in Local. Adjusts Utc/Unspecifed to Local. Serializes as Local</para>
  16. /// </devdoc>
  17. Local = 1,
  18. /// <devdoc>
  19. /// <para>The datetime column in Unspecified DateTimeMode stores datetime in Unspecified. Adjusts Local/Utc to Unspecified. Serializes as Unspecified with no offset across timezones</para>
  20. /// </devdoc>
  21. Unspecified = 2,
  22. /// <devdoc>
  23. /// <para>This is the default. The datetime column in UnspecifiedLocal DateTimeMode stores datetime in Unspecfied. Adjusts Local/Utc to Unspecified. Serializes as Unspecified but applying offset across timezones</para>
  24. /// </devdoc>
  25. UnspecifiedLocal = 3, //Unspecified while storing and Local when serializing. -> DataSetDateTime.Unspecified | DataSetDateTime.Local
  26. /// <devdoc>
  27. /// <para>
  28. /// <para>The datetime column in Utc DateTimeMode stores datetime in Utc. Adjusts Local/Unspecified to Utc. Serializes as Utc</para>
  29. /// </para>
  30. /// </devdoc>
  31. Utc = 4,
  32. }
  33. }