diff options
Diffstat (limited to 'sdks/wasm/tests/debugger/debugger-datetime-test.cs')
-rw-r--r-- | sdks/wasm/tests/debugger/debugger-datetime-test.cs | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/sdks/wasm/tests/debugger/debugger-datetime-test.cs b/sdks/wasm/tests/debugger/debugger-datetime-test.cs index 55a56761966..62890a7c0ff 100644 --- a/sdks/wasm/tests/debugger/debugger-datetime-test.cs +++ b/sdks/wasm/tests/debugger/debugger-datetime-test.cs @@ -1,24 +1,29 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + using System; using System.Globalization; -namespace DebuggerTests { - public class DateTimeTest { - public static string LocaleTest (string locale) - { - CultureInfo.CurrentCulture = new CultureInfo (locale, false); - Console.WriteLine("CurrentCulture is {0}", CultureInfo.CurrentCulture.Name); +namespace DebuggerTests +{ + public class DateTimeTest + { + public static string LocaleTest(string locale) + { + CultureInfo.CurrentCulture = new CultureInfo(locale, false); + Console.WriteLine("CurrentCulture is {0}", CultureInfo.CurrentCulture.Name); - DateTimeFormatInfo dtfi = CultureInfo.GetCultureInfo(locale).DateTimeFormat; - var fdtp = dtfi.FullDateTimePattern; - var ldp = dtfi.LongDatePattern; - var ltp = dtfi.LongTimePattern; - var sdp = dtfi.ShortDatePattern; - var stp = dtfi.ShortTimePattern; + DateTimeFormatInfo dtfi = CultureInfo.GetCultureInfo(locale).DateTimeFormat; + var fdtp = dtfi.FullDateTimePattern; + var ldp = dtfi.LongDatePattern; + var ltp = dtfi.LongTimePattern; + var sdp = dtfi.ShortDatePattern; + var stp = dtfi.ShortTimePattern; - DateTime dt = new DateTime (2020, 1, 2, 3, 4, 5); - string dt_str = dt.ToString(); - Console.WriteLine("Current time is {0}", dt_str); + DateTime dt = new DateTime(2020, 1, 2, 3, 4, 5); + string dt_str = dt.ToString(); + Console.WriteLine("Current time is {0}", dt_str); - return dt_str; - } - } -}
\ No newline at end of file + return dt_str; + } + } +} |