A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/gregocal_8h_source.html below:

ICU 77.1: i18n/unicode/gregocal.h Source File

31 #if U_SHOW_CPLUSPLUS_API 33 #if !UCONFIG_NO_FORMATTING 355 #ifndef U_FORCE_HIDE_DEPRECATED_API 383 #ifndef U_HIDE_DEPRECATED_API 463  virtual const char

*

getType

()

const override

;

541 #ifndef U_HIDE_INTERNAL_API 622 #ifndef U_HIDE_INTERNAL_API 639  static double

computeJulianDayOfYear(

UBool

isGregorian, int32_t year,

646  UBool

validateFields()

const

;

662

int32_t aggregateStamp(int32_t stamp_a, int32_t stamp_b);

671  UDate

fGregorianCutover;

676

int32_t fCutoverJulianDay;

683  UDate

fNormalizedGregorianCutover;

689

int32_t fGregorianCutoverYear;

698  static double

millisToJulianDay(

UDate

millis);

707  static UDate

julianDayToMillis(

double

julian);

720  UBool

fInvertGregorian;

C++ API: Calendar object.

#define DECLARE_OVERRIDE_SYSTEM_DEFAULT_CENTURY

Macro for the class to declare it override haveDefaultCentury, defaultCenturyStart,...

Calendar is an abstract base class for converting between a UDate object and a set of integer fields ...

EDateFields

Field IDs for date and time.

Concrete class which provides the standard calendar used by most of the world.

virtual UClassID getDynamicClassID() const override

Override Calendar Returns a unique class ID POLYMORPHICALLY.

int32_t getActualMinimum(EDateFields field, UErrorCode &status) const

Return the minimum value that this field could have, given the current date.

virtual int32_t handleComputeJulianDay(UCalendarDateFields bestField, UErrorCode &status) override

Subclasses may override this.

GregorianCalendar(UErrorCode &success)

Constructs a default GregorianCalendar using the current time in the default time zone with the defau...

virtual int32_t handleGetLimit(UCalendarDateFields field, ELimitType limitType) const override

Subclass API for defining limits of different types.

virtual void handleComputeFields(int32_t julianDay, UErrorCode &status) override

Subclasses may override this method to compute several fields specific to each calendar system.

EEras

Useful constants for GregorianCalendar and TimeZone.

virtual int32_t monthLength(int32_t month, UErrorCode &status) const

return the length of the given month.

GregorianCalendar(TimeZone *zoneToAdopt, UErrorCode &success)

Constructs a GregorianCalendar based on the current time in the given time zone with the default loca...

GregorianCalendar(const Locale &aLocale, UErrorCode &success)

Constructs a GregorianCalendar based on the current time in the default time zone with the given loca...

GregorianCalendar(const TimeZone &zone, const Locale &aLocale, UErrorCode &success)

Constructs a GregorianCalendar based on the current time in the given time zone with the given locale...

virtual int32_t monthLength(int32_t month, int32_t year) const

return the length of the month according to the given year.

virtual const char * getType() const override

Returns the calendar type name string for this Calendar object.

GregorianCalendar(TimeZone *zoneToAdopt, const Locale &aLocale, UErrorCode &success)

Constructs a GregorianCalendar based on the current time in the given time zone with the given locale...

UDate getGregorianChange() const

Gets the Gregorian Calendar change date.

GregorianCalendar(int32_t year, int32_t month, int32_t date, int32_t hour, int32_t minute, int32_t second, UErrorCode &success)

Constructs a GregorianCalendar with the given AD date and time set for the default time zone with the...

virtual int32_t handleGetYearLength(int32_t eyear, UErrorCode &status) const override

Return the number of days in the given extended year of this calendar system.

GregorianCalendar(const TimeZone &zone, UErrorCode &success)

Constructs a GregorianCalendar based on the current time in the given time zone with the default loca...

virtual bool isEra0CountingBackward() const override

The year in this calendar is counting from 1 backward if the era is 0.

GregorianCalendar(const GregorianCalendar &source)

Copy constructor.

virtual int32_t handleGetExtendedYearFromWeekFields(int32_t yearWoy, int32_t woy, UErrorCode &status) override

Subclasses may override this to convert from week fields (YEAR_WOY and WEEK_OF_YEAR) to an extended y...

virtual int32_t internalGetEra() const

Return the ERA.

int32_t yearLength() const

return the length of the year field.

virtual GregorianCalendar * clone() const override

Create and return a polymorphic copy of this calendar.

int32_t getActualMinimum(EDateFields field) const

Return the minimum value that this field could have, given the current date.

static UClassID getStaticClassID()

Return the class ID for this class.

UBool isLeapYear(int32_t year) const

Return true if the given year is a leap year.

virtual ~GregorianCalendar()

Destructor.

virtual int32_t handleGetExtendedYear(UErrorCode &status) override

Return the extended year defined by the current fields.

virtual int64_t handleComputeMonthStart(int32_t eyear, int32_t month, UBool useMonth, UErrorCode &status) const override

Return the Julian day number of day before the first day of the given month in the given extended yea...

int32_t getActualMinimum(UCalendarDateFields field, UErrorCode &status) const override

Return the minimum value that this field could have, given the current date.

GregorianCalendar(int32_t year, int32_t month, int32_t date, int32_t hour, int32_t minute, UErrorCode &success)

Constructs a GregorianCalendar with the given AD date and time set for the default time zone with the...

virtual int32_t getActualMaximum(UCalendarDateFields field, UErrorCode &status) const override

Return the maximum value that this field could have, given the current date.

virtual UDate getEpochDay(UErrorCode &status)

Return the day number with respect to the epoch.

virtual UBool isEquivalentTo(const Calendar &other) const override

Returns true if the given Calendar object is equivalent to this one.

virtual void roll(EDateFields field, int32_t amount, UErrorCode &status) override

(Overrides Calendar) Rolls up or down by the given amount in the specified field.

GregorianCalendar & operator=(const GregorianCalendar &right)

Default assignment operator.

virtual void roll(UCalendarDateFields field, int32_t amount, UErrorCode &status) override

(Overrides Calendar) Rolls up or down by the given amount in the specified field.

virtual int32_t handleGetMonthLength(int32_t extendedYear, int32_t month, UErrorCode &status) const override

Return the number of days in the given month of the given extended year of this calendar system.

GregorianCalendar(int32_t year, int32_t month, int32_t date, UErrorCode &success)

Constructs a GregorianCalendar with the given AD date set in the default time zone with the default l...

void setGregorianChange(UDate date, UErrorCode &success)

Sets the GregorianCalendar change date.

A Locale object represents a specific geographical, political, or cultural region.

TimeZone represents a time zone offset, and also figures out daylight savings.

UCalendarDateFields

Possible fields in a UCalendar.

int8_t UBool

The ICU boolean type, a signed-byte integer.

void * UClassID

UClassID is used to identify classes without using the compiler's RTTI.

Basic definitions for ICU, for both C and C++ APIs.

UErrorCode

Standard ICU4C error code type, a substitute for exceptions.

#define U_I18N_API

Set to export library symbols from inside the i18n library, and to import them from outside.

double UDate

Date and Time data type.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4