DateTimeFormatInfo.RFC1123Pattern-Eigenschaft
.NET Framework 3.5
Aktualisiert: November 2007
Ruft das Formatmuster für einen Uhrzeitwert ab, der auf der RFC-Spezifikation 1123 (Request for Comments) der IETF (Internet Engineering Task Force) basiert und den Formatmustern "r" und "R" zugeordnet ist.
Assembly: mscorlib (in mscorlib.dll)
/** @property */ public String get_RFC1123Pattern()
public function get RFC1123Pattern () : String
Eigenschaftenwert
Typ: System.StringDas Formatmuster für einen Uhrzeitwert, der auf der RFC-Spezifikation 1123 der IETF basiert und den Formatmustern "r" und "R" zugeordnet ist.
In folgendem Codebeispiel wird der Wert von RFC1123Pattern für bestimmte Kulturen angezeigt.
using System; using System.Globalization; public class SamplesDTFI { public static void Main() { // Displays the values of the pattern properties. Console.WriteLine( " CULTURE PROPERTY VALUE" ); PrintPattern( "en-US" ); PrintPattern( "ja-JP" ); PrintPattern( "fr-FR" ); } public static void PrintPattern( String myCulture ) { DateTimeFormatInfo myDTFI = new CultureInfo( myCulture, false ).DateTimeFormat; Console.WriteLine( " {0} {1}", myCulture, myDTFI.RFC1123Pattern ); } } /* This code produces the following output. CULTURE PROPERTY VALUE en-US ddd, dd MMM yyyy HH':'mm':'ss 'GMT' ja-JP ddd, dd MMM yyyy HH':'mm':'ss 'GMT' fr-FR ddd, dd MMM yyyy HH':'mm':'ss 'GMT' */
import System.* ;
import System.Globalization.* ;
public class SamplesDTFI
{
public static void main(String[] args)
{
// Displays the values of the pattern properties.
Console.WriteLine(" CULTURE PROPERTY VALUE");
PrintPattern("en-US");
PrintPattern("ja-JP");
PrintPattern("fr-FR");
} //main
public static void PrintPattern(String myCulture)
{
DateTimeFormatInfo myDTFI =
(new CultureInfo(myCulture, false)).get_DateTimeFormat();
Console.WriteLine(" {0} {1}",
myCulture, myDTFI.get_RFC1123Pattern());
} //PrintPattern
} //SamplesDTFI
/*
This code produces the following output.
CULTURE PROPERTY VALUE
en-US ddd, dd MMM yyyy HH':'mm':'ss 'GMT'
ja-JP ddd, dd MMM yyyy HH':'mm':'ss 'GMT'
fr-FR ddd, dd MMM yyyy HH':'mm':'ss 'GMT'
*/
Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile für Smartphone, Windows Mobile für Pocket PC, Xbox 360
.NET Framework und .NET Compact Framework unterstützen nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.