System::Globalization::DateTimeFormatInfo クラス

DateTimeFormatInfo class

日付と時刻の書式設定パラメータのセット。このクラスのオブジェクトは System::MakeObject() 関数を使用してのみ割り当てるべきです。スタック上や operator new を使用してインスタンスを作成しないでください。そうしないと実行時エラーやアサーション失敗が発生します。常にこのクラスを System::SmartPtr ポインタでラップし、関数の引数としてこのポインタを使用してください。

class DateTimeFormatInfo : public virtual System::Object,
                           public System::IFormatProvider,
                           public System::ICloneable

メソッド

メソッド説明
Clone() override書式情報をクローンします。
DateTimeFormatInfo()デフォルトコンストラクタ。不変の書式情報を構築します。
get_AbbreviatedDayNames() const省略形の曜日名を取得します。
get_AbbreviatedMonthGenitiveNames() const属格形の省略形月名を取得します。
get_AbbreviatedMonthNames() const省略形の月名を取得します。
get_AMDesignator() constAM デザインターを取得します。
get_Calendar() constフォーマッタに関連付けられたカレンダーを取得します。
get_CalendarWeekRule() constフォーマッタに関連付けられたカレンダー週ルールを取得します。
static get_CurrentInfo()現在のスレッドの日時フォーマッタを取得します。
get_DateSeparator() const日付区切り文字を取得します。
get_DayNames() const曜日名を取得します。
get_FirstDayOfWeek() const週の最初の日を取得します。
get_FullDateTimePattern() const完全な日付と時刻のパターンを取得します。
static get_InvariantInfo()不変の日付と時刻のフォーマッタを取得します。
get_IsReadOnly() constフォーマッタが読み取り専用かどうかを確認します。
get_LongDatePattern() const長形式の日付パターンを取得します。
get_LongTimePattern() const長形式の時刻パターンを取得します。
get_MonthDayPattern() const月日パターンを取得します。
get_MonthGenitiveNames() const属格形の月名を取得します。
get_MonthNames() const月名を取得します。
get_NativeCalendarName() const利用可能な場合、ネイティブカレンダー名を取得します。
get_PMDesignator() constPM デザインターを取得します。
get_RFC1123Pattern() constRFC1123 パターンを取得します。
get_ShortDatePattern() const短形式の日付パターンを取得します。
get_ShortestDayNames() const可能な限り最短の曜日名を取得します。
get_ShortTimePattern() const短形式の時刻パターンを取得します。
get_SortableDateTimePattern() constソート可能な日付と時刻のパターンを取得します。
get_TimeSeparator() const時刻区切り文字を取得します。
get_UniversalSortableDateTimePattern() constユニバーサルにソート可能な日付と時刻のパターンを取得します。
get_YearMonthPattern() const年と月のパターンを取得します。
GetAbbreviatedDayName(DayOfWeek) const省略形の曜日名を取得します。
GetAbbreviatedEraName(int) const省略形の元号名を取得します。
GetAbbreviatedMonthName(int) const省略形の月名を取得します。
GetAllDateTimePatterns() const日付と時刻の値をフォーマットできるすべてのパターンを取得します。
GetAllDateTimePatterns(char16_t) const指定された書式文字列を使用して、日付と時刻の値をフォーマットできるすべてのパターンを取得します。
GetDayName(DayOfWeek) const曜日名を取得します。
GetEra(const String&) const名前で元号を取得します。
GetEraName(int) const元号名を取得します。
GetFormat(const TypeInfo&) override特定のタイプのフォーマッタを取得します。
static GetInstance(const IFormatProviderPtr&)フォーマットプロバイダーに関連付けられたフォーマッタを取得します。
GetLeapYearMonthName(int) const閏年の月名を取得します。
GetMonthGenitiveName(int) const属格の月名を取得します。
GetMonthName(int) const月名を取得します。
GetShortestDayName(DayOfWeek) const指定された曜日の最短名を取得します。
operator=(const DateTimeFormatInfo&)
static ReadOnly(const DateTimeFormatInfoPtr&)フォーマッタの読み取り専用バージョンを取得します。
set_AbbreviatedDayNames(const ArrayPtr<String>&)省略形の曜日名を設定します。
set_AbbreviatedMonthGenitiveNames(const ArrayPtr<String>&)属格形の省略形月名を設定します。
set_AbbreviatedMonthNames(const ArrayPtr<String>&)省略形の月名を設定します。
set_AMDesignator(const String&)AM 表示を設定します。
set_Calendar(const SharedPtr<Calendar>&)フォーマッタに関連付けられたカレンダーを設定します。
set_CalendarWeekRule(CalendarWeekRule)フォーマッタに関連付けられたカレンダー週ルールを設定します。
set_DateSeparator(const String&)日付区切り文字を設定します。
set_DayNames(const ArrayPtr<String>&)曜日名を設定します。
set_FirstDayOfWeek(DayOfWeek)週の開始曜日を設定します。
set_FullDateTimePattern(const String&)完全な日付と時刻のパターンを設定します。
set_LongDatePattern(const String&)長い日付パターンを設定します。
set_LongTimePattern(const String&)長い時刻パターンを設定します。
set_MonthDayPattern(const String&)月日パターンを設定します。
set_MonthGenitiveNames(const ArrayPtr<String>&)属格形の月名を設定します。
set_MonthNames(const ArrayPtr<String>&)月名を設定します。
set_PMDesignator(const String&)PM 表示を設定します。
set_ShortDatePattern(const String&)短い日付パターンを設定します。
set_ShortestDayNames(const ArrayPtr<String>&)可能な限り最短の曜日名を設定します。
set_ShortTimePattern(const String&)短時間パターンを設定します。
set_TimeSeparator(const String&)時間区切り文字を設定します。
set_YearMonthPattern(const String&)年と月のパターンを設定します。
SetAllDateTimePatterns(const ArrayPtr<String>&, char16_t)指定された形式のパターンを設定します。

参照