using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Resources;
using System.Text;
using System.Threading;
using System.Globalization;
public class MainClass
{
public static void Main()
{
string[] cultures = new string[] { "en-US", "en-GB", "es-MX", "de-DE", "ja-JP" };
using (TextWriter sw = Console.Out)
{
foreach (string c in cultures)
{
CultureInfo ci = new CultureInfo(c);
sw.Write(" Days: ");
foreach (string d in ci.DateTimeFormat.DayNames)
sw.Write(", {0}", d);
sw.WriteLine();
}
}
}
}
Output Days: , Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday
Days: , Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday
Days: , domingo, lunes, martes, mi?oles, jueves, viernes, s?do
Days: , Sonntag, Montag, Dienstag, Mittwoch, Donnerstag, Freitag, Samstag
Days: , ???, ???, ???, ???, ???, ???, ???
|