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/datefmt_8h_source.html below:

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

26 #if U_SHOW_CPLUSPLUS_API 28 #if !UCONFIG_NO_FORMATTING 46 class

DateTimePatternGenerator;

53 #if U_PF_WINDOWS <= U_PLATFORM && U_PLATFORM <= U_PF_CYGWIN && !defined(U_IN_DOXYGEN) 175

kDateOffset = kShort + 1,

184

kDateTimeOffset = kDateTime + 1,

191

kRelative = (1 << 7),

193

kFullRelative = (kFull | kRelative),

195

kLongRelative = kLong | kRelative,

197

kMediumRelative = kMedium | kRelative,

199

kShortRelative = kShort | kRelative,

215

DATE_OFFSET = kDateOffset,

217

DATE_TIME = kDateTime

549  const Locale

& aLocale = Locale::getDefault());

567  const Locale

& aLocale = Locale::getDefault());

588  EStyle

timeStyle = kDefault,

589  const Locale

& aLocale = Locale::getDefault());

591 #ifndef U_HIDE_INTERNAL_API 898

EnumSet<UDateFormatBooleanAttribute, 0, UDAT_BOOLEAN_ATTRIBUTE_COUNT> fBoolFlags;

902  friend class

DateFmtKeyByStyle;

905 #ifndef U_HIDE_OBSOLETE_API

C++ API: Calendar object.

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

DateFormat is an abstract class for a family of classes that convert dates and times from their inter...

static DateFormat * createInstanceForSkeleton(Calendar *calendarToAdopt, const UnicodeString &skeleton, const Locale &locale, UErrorCode &status)

Creates a date/time formatter for the given skeleton and locale.

virtual UBool getBooleanAttribute(UDateFormatBooleanAttribute attr, UErrorCode &status) const

Returns a boolean from this DateFormat May return U_UNSUPPORTED_ERROR if this instance does not suppo...

static const Locale * getAvailableLocales(int32_t &count)

Gets the set of locales for which DateFormats are installed.

virtual UDate parse(const UnicodeString &text, UErrorCode &status) const

Parse a date/time string.

DateFormat()

Default constructor.

static DateFormat * createInstance()

Create a default date/time formatter that uses the SHORT style for both the date and the time.

virtual DateFormat * clone() const override=0

Clones this object polymorphically.

virtual bool operator==(const Format &) const override

Equality operator.

virtual ~DateFormat()

Destructor.

Calendar * fCalendar

The calendar that DateFormat uses to produce the time field values needed to implement date/time form...

static UnicodeString getBestPattern(const Locale &locale, const UnicodeString &skeleton, UErrorCode &status)

Returns the best pattern given a skeleton and locale.

NumberFormat * fNumberFormat

The number formatter that DateFormat uses to format numbers in dates and times.

virtual UnicodeString & format(Calendar &cal, UnicodeString &appendTo, FieldPosition &fieldPosition) const =0

Formats a date into a date/time string.

virtual const NumberFormat * getNumberFormat() const

Gets the number formatter which this date/time formatter uses to format and parse the numeric portion...

virtual void parseObject(const UnicodeString &source, Formattable &result, ParsePosition &parse_pos) const override

Parse a string to produce an object.

static DateFormat * createInstanceForSkeleton(const UnicodeString &skeleton, UErrorCode &status)

Creates a date/time formatter for the given skeleton and default locale.

virtual const Calendar * getCalendar() const

Gets the calendar associated with this date/time formatter.

virtual void setCalendarLenient(UBool lenient)

Specifies whether encapsulated Calendar date/time parsing is to be lenient.

DateFormat(const DateFormat &)

Copy constructor.

virtual DateFormat & setBooleanAttribute(UDateFormatBooleanAttribute attr, UBool newvalue, UErrorCode &status)

Sets an boolean attribute on this DateFormat.

virtual UDisplayContext getContext(UDisplayContextType type, UErrorCode &status) const

Get the formatter's UDisplayContext value for the specified UDisplayContextType, such as UDISPCTX_TYP...

UnicodeString & format(UDate date, UnicodeString &appendTo) const

Formats a UDate into a date/time string.

virtual void setLenient(UBool lenient)

Specifies whether date/time parsing is to be lenient.

virtual UBool isCalendarLenient() const

Returns whether date/time parsing in the encapsulated Calendar object processing is lenient.

UnicodeString & format(UDate date, UnicodeString &appendTo, FieldPosition &fieldPosition) const

Formats a UDate into a date/time string.

virtual void setTimeZone(const TimeZone &zone)

Sets the time zone for the calendar of this DateFormat object.

virtual void adoptNumberFormat(NumberFormat *formatToAdopt)

Allows you to set the number formatter.

virtual void setCalendar(const Calendar &newCalendar)

Set the calendar to be used by this date format.

virtual const TimeZone & getTimeZone() const

Returns a reference to the TimeZone used by this DateFormat's calendar.

static DateFormat * createInstanceForSkeleton(const UnicodeString &skeleton, const Locale &locale, UErrorCode &status)

Creates a date/time formatter for the given skeleton and locale.

virtual UnicodeString & format(Calendar &cal, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const

Formats a date into a date/time string.

virtual void parse(const UnicodeString &text, Calendar &cal, ParsePosition &pos) const =0

Parse a date/time string beginning at the given parse position.

static DateFormat * createDateTimeInstance(EStyle dateStyle=kDefault, EStyle timeStyle=kDefault, const Locale &aLocale=Locale::getDefault())

Creates a date/time formatter with the given formatting styles for the given locale.

virtual UnicodeString & format(const Formattable &obj, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const override

Format an object to produce a string.

static DateFormat * createTimeInstance(EStyle style=kDefault, const Locale &aLocale=Locale::getDefault())

Creates a time formatter with the given formatting style for the given locale.

UnicodeString & format(UDate date, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const

Formats a UDate into a date/time string.

virtual void setNumberFormat(const NumberFormat &newNumberFormat)

Allows you to set the number formatter.

virtual void setContext(UDisplayContext value, UErrorCode &status)

Set a particular UDisplayContext value in the formatter, such as UDISPCTX_CAPITALIZATION_FOR_STANDALO...

DateFormat & operator=(const DateFormat &)

Default assignment operator.

EStyle

Constants for various style patterns.

UDate parse(const UnicodeString &text, ParsePosition &pos) const

Parse a date/time string beginning at the given parse position.

static DateFormat * createDateInstance(EStyle style=kDefault, const Locale &aLocale=Locale::getDefault())

Creates a date formatter with the given formatting style for the given const locale.

virtual UnicodeString & format(const Formattable &obj, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const override

Format an object to produce a string.

EField

Field selector for FieldPosition for DateFormat fields.

virtual void adoptCalendar(Calendar *calendarToAdopt)

Set the calendar to be used by this date format.

virtual void adoptTimeZone(TimeZone *zoneToAdopt)

Sets the time zone for the calendar of this DateFormat object.

virtual UBool isLenient() const

Returns whether both date/time parsing in the encapsulated Calendar object and DateFormat whitespace ...

FieldPositionIterator returns the field ids and their start/limit positions generated by a call to Fo...

FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...

Base class for all formats.

UnicodeString & format(const Formattable &obj, UnicodeString &appendTo, UErrorCode &status) const

Formats an object to produce a string.

Formattable objects can be passed to the Format class or its subclasses for formatting.

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

ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...

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

UnicodeString is a string class that stores Unicode characters directly and provides similar function...

C++: internal template EnumSet<>

C++ API: Base class for all formats.

C++ API: Locale ID object.

C++ API: Compatibility APIs for number formatting.

@ UDAT_AM_PM_FIELD

FieldPosition and UFieldPosition selector for 'a' field alignment, corresponding to the UCAL_AM_PM fi...

@ UDAT_TIMEZONE_FIELD

FieldPosition and UFieldPosition selector for 'z' field alignment, corresponding to the UCAL_ZONE_OFF...

@ UDAT_DOW_LOCAL_FIELD

FieldPosition and UFieldPosition selector for 'e' field alignment, corresponding to the UCAL_DOW_LOCA...

@ UDAT_DATE_FIELD

FieldPosition and UFieldPosition selector for 'd' field alignment, corresponding to the UCAL_DATE fie...

@ UDAT_MONTH_FIELD

FieldPosition and UFieldPosition selector for 'M' field alignment, corresponding to the UCAL_MONTH fi...

@ UDAT_JULIAN_DAY_FIELD

FieldPosition and UFieldPosition selector for 'g' field alignment, corresponding to the UCAL_JULIAN_D...

@ UDAT_EXTENDED_YEAR_FIELD

FieldPosition and UFieldPosition selector for 'u' field alignment, corresponding to the UCAL_EXTENDED...

@ UDAT_DAY_OF_WEEK_FIELD

FieldPosition and UFieldPosition selector for 'E' field alignment, corresponding to the UCAL_DAY_OF_W...

@ UDAT_MILLISECONDS_IN_DAY_FIELD

FieldPosition and UFieldPosition selector for 'A' field alignment, corresponding to the UCAL_MILLISEC...

@ UDAT_YEAR_FIELD

FieldPosition and UFieldPosition selector for 'y' field alignment, corresponding to the UCAL_YEAR fie...

@ UDAT_ERA_FIELD

FieldPosition and UFieldPosition selector for 'G' field alignment, corresponding to the UCAL_ERA fiel...

@ UDAT_DAY_OF_YEAR_FIELD

FieldPosition and UFieldPosition selector for 'D' field alignment, corresponding to the UCAL_DAY_OF_Y...

@ UDAT_WEEK_OF_MONTH_FIELD

FieldPosition and UFieldPosition selector for 'W' field alignment, corresponding to the UCAL_WEEK_OF_...

@ UDAT_FRACTIONAL_SECOND_FIELD

FieldPosition and UFieldPosition selector for 'S' field alignment, corresponding to the UCAL_MILLISEC...

@ UDAT_DAY_OF_WEEK_IN_MONTH_FIELD

FieldPosition and UFieldPosition selector for 'F' field alignment, corresponding to the UCAL_DAY_OF_W...

@ UDAT_SECOND_FIELD

FieldPosition and UFieldPosition selector for 's' field alignment, corresponding to the UCAL_SECOND f...

@ UDAT_HOUR1_FIELD

FieldPosition and UFieldPosition selector for 'h' field alignment, corresponding to the UCAL_HOUR fie...

@ UDAT_MINUTE_FIELD

FieldPosition and UFieldPosition selector for 'm' field alignment, corresponding to the UCAL_MINUTE f...

@ UDAT_HOUR0_FIELD

FieldPosition and UFieldPosition selector for 'K' field alignment, corresponding to the UCAL_HOUR fie...

@ UDAT_YEAR_WOY_FIELD

FieldPosition and UFieldPosition selector for 'Y' field alignment, corresponding to the UCAL_YEAR_WOY...

@ UDAT_WEEK_OF_YEAR_FIELD

FieldPosition and UFieldPosition selector for 'w' field alignment, corresponding to the UCAL_WEEK_OF_...

@ UDAT_HOUR_OF_DAY0_FIELD

FieldPosition and UFieldPosition selector for 'H' field alignment, corresponding to the UCAL_HOUR_OF_...

@ UDAT_HOUR_OF_DAY1_FIELD

FieldPosition and UFieldPosition selector for 'k' field alignment, corresponding to the UCAL_HOUR_OF_...

UDateFormatBooleanAttribute

DateFormat boolean attributes.

@ UDAT_BOOLEAN_ATTRIBUTE_COUNT

One more than the highest normal UDateFormatBooleanAttribute value.

C API: Display context types (enum values)

UDisplayContextType

Display context types, for getting values of a particular setting.

UDisplayContext

Display context settings.

int8_t UBool

The ICU boolean type, a signed-byte integer.

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