الفئة 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.

انظر أيضًا