/
githubmirror
/
PowerShell
Обзор
Документация
Войти
/
githubmirror
/
PowerShell
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/JsonDateKind.cs
38 строк
1 KB
Jordan Borean
ConvertFrom-Json: Add -DateKind parameter (#20925)
13 фев 2024, 07:05
Не верифицирован
13 фев 2024, 07:05
7103554
Код
Авторство
О чём код?
// 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, } }