Last active
October 10, 2023 18:22
-
-
Save philipmat/bf714827b7a31b8d62ff41bec0b87b42 to your computer and use it in GitHub Desktop.
DotNet LongTimePattern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net7.0</TargetFramework> | |
<ImplicitUsings>enable</ImplicitUsings> | |
<Nullable>enable</Nullable> | |
</PropertyGroup> | |
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Console.WriteLine($".NET Version={Environment.Version}"); | |
Console.WriteLine($"OS={System.Runtime.InteropServices.RuntimeInformation.OSDescription}"); | |
Console.WriteLine($"Long Time Pattern={new System.Globalization.CultureInfo("en-US").DateTimeFormat.LongTimePattern}"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On MacOS Sonoma 14.0
On MacOS Ventura 13.6
On Windows 10
dotnet/runtime#93310
Seems to be fixed with .NET 8.0.100-rc.2.23502.2