فئة System::Globalization::Calendar

Calendar class

Calendar which defines how the dates are handled, calculated, formatted, etc. Setter operations are only enabled on non-read-only objects. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

class Calendar : public System::ICloneable

الطرق

طريقةالوصف
virtual AddDays(DateTime, int) constيضيف أيامًا إلى نقطة الزمن.
virtual AddHours(DateTime, int) constيضيف ساعات إلى نقطة الزمن.
virtual AddMilliseconds(DateTime, double) constيضيف ميليثوانٍ إلى نقطة الزمن.
virtual AddMinutes(DateTime, int) constيضيف دقائق إلى نقطة الزمن.
virtual AddMonths(DateTime, int) constيضيف شهورًا إلى نقطة الزمن.
virtual AddSeconds(DateTime, int) constيضيف ثوانٍ إلى نقطة الزمن.
virtual AddWeeks(DateTime, int) constيضيف أسابيع إلى نقطة الزمن.
virtual AddYears(DateTime, int) constيضيف سنوات إلى نقطة الزمن.
Calendar(const Calendar&)معلومات RTTI.
virtual get_AlgorithmType() constيحصل على نوع الخوارزمية.
get_CurrentEra() constيحصل على فهرس العصر الحالي.
get_CurrentEraValue() constيحصل على قيمة العصر الحالي.
virtual get_Eras() constيحصل على قائمة العصور الموجودة في التقويم.
virtual get_ID() constيحصل على معرف التقويم.
get_IsReadOnly() constيتحقق مما إذا كان التقويم للقراءة فقط.
virtual get_MaxSupportedDateTime() constالنقطة الزمنية القصوى التي يدعمها التقويم.
virtual get_MinSupportedDateTime() constالنقطة الزمنية الدنيا التي يدعمها التقويم.
virtual get_TwoDigitYearMax() constيحصل على آخر سنة يمكن تمثيلها برقم مكوّن من رقمين.
virtual GetDayOfMonth(DateTime) constيحصل على يوم الشهر للنقطة الزمنية المحددة.
virtual GetDayOfWeek(DateTime) constيحصل على يوم الأسبوع للنقطة الزمنية المحددة.
virtual GetDayOfYear(DateTime) constيحصل على يوم السنة للنقطة الزمنية المحددة.
virtual GetDaysInMonth(int, int) constيحصل على عدد الأيام في شهر محدد.
virtual GetDaysInMonth(int, int, int) constيحصل على عدد الأيام في شهر محدد.
virtual GetDaysInYear(int) constيحصل على عدد الأيام في سنة محددة.
virtual GetDaysInYear(int, int) constيحصل على عدد الأيام في سنة محددة.
virtual GetEra(DateTime) constيحصل على العصر للنقطة الزمنية المحددة.
virtual GetHour(DateTime) constيحصل على الساعات للنقطة الزمنية المحددة.
virtual GetLeapMonth(int) constيحصل على الشهر الكبيس للسنة المحددة.
virtual GetLeapMonth(int, int) constيحصل على الشهر الكبيس للسنة المحددة.
virtual GetMilliseconds(DateTime) constيحصل على الميليثواني للنقطة الزمنية المحددة.
virtual GetMinute(DateTime) constيحصل على الدقائق للنقطة الزمنية المحددة.
virtual GetMonth(DateTime) constيحصل على الشهر للنقطة الزمنية المحددة.
virtual GetMonthsInYear(int) constيحصل على عدد الأشهر في السنة المحددة.
virtual GetMonthsInYear(int, int) constيحصل على عدد الأشهر في السنة المحددة.
virtual GetSecond(DateTime) constيحصل على الثواني للنقطة الزمنية المحددة.
virtual GetWeekOfYear(DateTime, CalendarWeekRule, DayOfWeek) constيحصل على أسبوع السنة للنقطة الزمنية المحددة.
virtual GetYear(DateTime) constيحصل على السنة للنقطة الزمنية المحددة.
virtual IsLeapDay(int, int, int) constيتحقق مما إذا كان اليوم كبيسًا.
virtual IsLeapDay(int, int, int, int) constيتحقق مما إذا كان اليوم كبيسًا.
virtual IsLeapMonth(int, int) constيتحقق مما إذا كان الشهر كبيسًا.
virtual IsLeapMonth(int, int, int) constيتحقق مما إذا كان الشهر كبيسًا.
virtual IsLeapYear(int) constيتحقق مما إذا كانت السنة كبيسة.
virtual IsLeapYear(int, int) constيتحقق مما إذا كانت السنة كبيسة.
IsValidDay(int, int, int, int) constيتحقق من قيم السنة والشهر واليوم والعصر.
operator=(const Calendar&)
static ReadOnly(const CalendarPtr&)يحصل على نسخة التقويم للقراءة فقط.
virtual set_TwoDigitYearMax(int)يضبط آخر سنة يمكن تمثيلها برقم مكوّن من رقمين.
virtual ToDateTime(int, int, int, int, int, int, int) constينشئ كائن DateTime من المكونات.
virtual ToDateTime(int, int, int, int, int, int, int, int) constينشئ كائن DateTime من المكونات.
virtual ToFourDigitYear(int) constيحوّل السنة إلى سنة مكوّنة من 4 أرقام باستخدام خاصية TwoDigitYearMax.

انظر أيضًا