File size: 1,028 Bytes
8c763fb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#nullable enable

namespace Microsoft.PowerShell.Commands
{
    /// <summary>
    /// Enums for ConvertFrom-Json -DateKind parameter.
    /// </summary>
    public enum JsonDateKind
    {
        /// <summary>
        /// DateTime values are returned as a DateTime with the Kind representing the time zone in the raw string.
        /// </summary>
        Default,

        /// <summary>
        /// DateTime values are returned as the Local kind representation of the value.
        /// </summary>
        Local,

        /// <summary>
        /// DateTime values are returned as the UTC kind representation of the value.
        /// </summary>
        Utc,

        /// <summary>
        /// DateTime values are returned as a DateTimeOffset value preserving the timezone information.
        /// </summary>
        Offset,

        /// <summary>
        /// DateTime values are returned as raw strings.
        /// </summary>
        String,
    }
}