Asposecpplib
System::Globalization::DateTimeFormatInfo Class Referencefinal

Set of date and time formatting parameters. 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. More...

Inherits System::Object, System::IFormatProvider, and System::ICloneable.

Public Member Functions

ASPOSECPP_SHARED_API SharedPtr< ObjectGetFormat (const TypeInfo &format_type) override
 Gets formatter of specific type. More...
 
ASPOSECPP_SHARED_API SharedPtr< ObjectClone () override
 Clones format info. More...
 
ASPOSECPP_SHARED_API bool get_IsReadOnly () const
 Checks whether formatter is read-only. More...
 
ASPOSECPP_SHARED_API String get_ShortDatePattern () const
 Gets short date pattern. More...
 
ASPOSECPP_SHARED_API void set_ShortDatePattern (const String &value)
 Sets short date pattern. More...
 
ASPOSECPP_SHARED_API String get_ShortTimePattern () const
 Gets short time pattern. More...
 
ASPOSECPP_SHARED_API void set_ShortTimePattern (const String &value)
 Sets short time pattern. More...
 
ASPOSECPP_SHARED_API String get_LongDatePattern () const
 Gets long date pattern. More...
 
ASPOSECPP_SHARED_API void set_LongDatePattern (const String &value)
 Sets long date pattern. More...
 
ASPOSECPP_SHARED_API String get_LongTimePattern () const
 Gets long time pattern. More...
 
ASPOSECPP_SHARED_API void set_LongTimePattern (const String &value)
 Sets long time pattern. More...
 
ASPOSECPP_SHARED_API String get_DateSeparator () const
 Gets date separator. More...
 
ASPOSECPP_SHARED_API void set_DateSeparator (const String &value)
 Sets date separator. More...
 
ASPOSECPP_SHARED_API String get_TimeSeparator () const
 Gets time separator. More...
 
ASPOSECPP_SHARED_API void set_TimeSeparator (const String &value)
 Sets time separator. More...
 
ASPOSECPP_SHARED_API String get_PMDesignator () const
 Gets PM designator. More...
 
ASPOSECPP_SHARED_API void set_PMDesignator (const String &value)
 Sets PM designator. More...
 
ASPOSECPP_SHARED_API String get_AMDesignator () const
 Gets AM designator. More...
 
ASPOSECPP_SHARED_API void set_AMDesignator (const String &value)
 Sets AM designator. More...
 
ASPOSECPP_SHARED_API ArrayPtr< Stringget_AbbreviatedDayNames () const
 Gets abbreviated day names. More...
 
ASPOSECPP_SHARED_API void set_AbbreviatedDayNames (const ArrayPtr< String > &value)
 Sets abbreviated day names. More...
 
ASPOSECPP_SHARED_API ArrayPtr< Stringget_AbbreviatedMonthGenitiveNames () const
 Gets abbreviated month names in genitive form. More...
 
ASPOSECPP_SHARED_API void set_AbbreviatedMonthGenitiveNames (const ArrayPtr< String > &value)
 Sets abbreviated month names in genitive form. More...
 
ASPOSECPP_SHARED_API ArrayPtr< Stringget_AbbreviatedMonthNames () const
 Gets abbreviated month names. More...
 
ASPOSECPP_SHARED_API void set_AbbreviatedMonthNames (const ArrayPtr< String > &value)
 Sets abbreviated month names. More...
 
ASPOSECPP_SHARED_API SharedPtr< Calendarget_Calendar () const
 Gets calendar associated with formatter. More...
 
ASPOSECPP_SHARED_API void set_Calendar (const SharedPtr< Calendar > &value)
 Sets calendar associated with formatter. More...
 
ASPOSECPP_SHARED_API CalendarWeekRule get_CalendarWeekRule () const
 Gets calendar week rule associated with formatter. More...
 
ASPOSECPP_SHARED_API void set_CalendarWeekRule (CalendarWeekRule value)
 Sets calendar week rule associated with formatter. More...
 
ASPOSECPP_SHARED_API ArrayPtr< Stringget_DayNames () const
 Gets day names. More...
 
ASPOSECPP_SHARED_API void set_DayNames (const ArrayPtr< String > &value)
 Sets day names. More...
 
ASPOSECPP_SHARED_API DayOfWeek get_FirstDayOfWeek () const
 Gets first day of week. More...
 
ASPOSECPP_SHARED_API void set_FirstDayOfWeek (DayOfWeek value)
 Sets first day of week. More...
 
ASPOSECPP_SHARED_API String get_FullDateTimePattern () const
 Gets full date and time pattern. More...
 
ASPOSECPP_SHARED_API void set_FullDateTimePattern (const String &value)
 Sets full date and time pattern. More...
 
ASPOSECPP_SHARED_API String get_MonthDayPattern () const
 Gets month day pattern. More...
 
ASPOSECPP_SHARED_API void set_MonthDayPattern (const String &value)
 Sets month day pattern. More...
 
ASPOSECPP_SHARED_API ArrayPtr< Stringget_MonthGenitiveNames () const
 Gets month names in genitive form. More...
 
ASPOSECPP_SHARED_API void set_MonthGenitiveNames (const ArrayPtr< String > &value)
 Sets month names in genitive form. More...
 
ASPOSECPP_SHARED_API ArrayPtr< Stringget_MonthNames () const
 Gets month names. More...
 
ASPOSECPP_SHARED_API void set_MonthNames (const ArrayPtr< String > &value)
 Sets month names. More...
 
ASPOSECPP_SHARED_API String get_RFC1123Pattern () const
 Gets RFC1123 pattern. More...
 
ASPOSECPP_SHARED_API ArrayPtr< Stringget_ShortestDayNames () const
 Gets shortest day names possible. More...
 
ASPOSECPP_SHARED_API void set_ShortestDayNames (const ArrayPtr< String > &value)
 Sets shortest day names possible. More...
 
ASPOSECPP_SHARED_API String get_SortableDateTimePattern () const
 Gets sortable date and time pattern. More...
 
ASPOSECPP_SHARED_API String get_UniversalSortableDateTimePattern () const
 Gets universal sortable date and time pattern. More...
 
ASPOSECPP_SHARED_API String get_YearMonthPattern () const
 Gets year and month pattern. More...
 
ASPOSECPP_SHARED_API void set_YearMonthPattern (const String &value)
 Sets year and month pattern. More...
 
ASPOSECPP_SHARED_API String GetAbbreviatedDayName (DayOfWeek day_of_week) const
 Gets abbreviated week day name. More...
 
ASPOSECPP_SHARED_API String GetAbbreviatedEraName (int era) const
 Gets abbreviated era name. More...
 
ASPOSECPP_SHARED_API String GetAbbreviatedMonthName (int month) const
 Gets abbreviated month name. More...
 
ASPOSECPP_SHARED_API String GetDayName (DayOfWeek day_of_week) const
 Gets week day name. More...
 
ASPOSECPP_SHARED_API int GetEra (const String &era_name) const
 Gets era by name. More...
 
ASPOSECPP_SHARED_API String GetEraName (int era) const
 Gets era name. More...
 
ASPOSECPP_SHARED_API String GetMonthName (int month) const
 Gets month name. More...
 
ASPOSECPP_SHARED_API String GetMonthGenitiveName (int month) const
 Gets genitive month name. More...
 
ASPOSECPP_SHARED_API String GetLeapYearMonthName (int month) const
 Gets leap-year month name. More...
 
ASPOSECPP_SHARED_API String get_NativeCalendarName () const
 Gets native calendar name if available. More...
 
ASPOSECPP_SHARED_API ArrayPtr< StringGetAllDateTimePatterns () const
 Gets all patterns in which date and time values can be formatted. More...
 
ASPOSECPP_SHARED_API ArrayPtr< StringGetAllDateTimePatterns (char16_t format) const
 Gets all patterns in which date and time values can be formatted using specified format string. More...
 
ASPOSECPP_SHARED_API void SetAllDateTimePatterns (const ArrayPtr< String > &patterns, char16_t format)
 Sets patterns for the specified format. More...
 
ASPOSECPP_SHARED_API String GetShortestDayName (DayOfWeek day_of_week) const
 Gets shortes name for the specified day of week. More...
 
DateTimeFormatInfooperator= (const DateTimeFormatInfo &)=delete
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared refernce counter. More...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API int GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API String ToString () ASPOSE_CONST
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (unsigned int argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool Equals (double const &objA, double const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 Specialization of Object::ReferenceEquals for case of string and nullptr. More...
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 Specialization of Object::ReferenceEquals for case of strings. More...
 

Static Public Member Functions

static ASPOSECPP_SHARED_API const DateTimeFormatInfoPtrget_InvariantInfo ()
 Gets invariant date and time formatter. More...
 
static ASPOSECPP_SHARED_API DateTimeFormatInfoPtr get_CurrentInfo ()
 Gets current thread's date and time formatter. More...
 
static ASPOSECPP_SHARED_API DateTimeFormatInfoPtr GetInstance (const IFormatProviderPtr &provider)
 Gets formatter associated with format provider. More...
 
static ASPOSECPP_SHARED_API DateTimeFormatInfoPtr ReadOnly (const DateTimeFormatInfoPtr &info)
 Gets read-only version of formatter. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Impleemnts C# typeof(System.Object) construct. More...
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
typedef System::Details::SharedMembersType shared_members_type
 structure to keep list of shared pointers contained in object. More...
 

Detailed Description

Set of date and time formatting parameters. 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.

Member Function Documentation

◆ Clone()

ASPOSECPP_SHARED_API SharedPtr<Object> System::Globalization::DateTimeFormatInfo::Clone ( )
overridevirtual

Clones format info.

Returns
Newly created copy of format info object.

Implements System::ICloneable.

◆ get_AbbreviatedDayNames()

ASPOSECPP_SHARED_API ArrayPtr<String> System::Globalization::DateTimeFormatInfo::get_AbbreviatedDayNames ( ) const

Gets abbreviated day names.

Returns
Array of abbreviated day names, starting with Sunday.

◆ get_AbbreviatedMonthGenitiveNames()

ASPOSECPP_SHARED_API ArrayPtr<String> System::Globalization::DateTimeFormatInfo::get_AbbreviatedMonthGenitiveNames ( ) const

Gets abbreviated month names in genitive form.

Returns
Array of abbreviated month names, starting with January.

◆ get_AbbreviatedMonthNames()

ASPOSECPP_SHARED_API ArrayPtr<String> System::Globalization::DateTimeFormatInfo::get_AbbreviatedMonthNames ( ) const

Gets abbreviated month names.

Returns
Array of abbreviated month names, starting with January.

◆ get_AMDesignator()

ASPOSECPP_SHARED_API String System::Globalization::DateTimeFormatInfo::get_AMDesignator ( ) const

Gets AM designator.

Returns
AM designator string.

◆ get_Calendar()

ASPOSECPP_SHARED_API SharedPtr<Calendar> System::Globalization::DateTimeFormatInfo::get_Calendar ( ) const

Gets calendar associated with formatter.

Returns
Calendar objects.

◆ get_CalendarWeekRule()

ASPOSECPP_SHARED_API CalendarWeekRule System::Globalization::DateTimeFormatInfo::get_CalendarWeekRule ( ) const

Gets calendar week rule associated with formatter.

Returns
Week rule.

◆ get_CurrentInfo()

static ASPOSECPP_SHARED_API DateTimeFormatInfoPtr System::Globalization::DateTimeFormatInfo::get_CurrentInfo ( )
static

Gets current thread's date and time formatter.

Returns
Format info object.

◆ get_DateSeparator()

ASPOSECPP_SHARED_API String System::Globalization::DateTimeFormatInfo::get_DateSeparator ( ) const

Gets date separator.

Returns
Date components separator character.

◆ get_DayNames()

ASPOSECPP_SHARED_API ArrayPtr<String> System::Globalization::DateTimeFormatInfo::get_DayNames ( ) const

Gets day names.

Returns
Array of day names, starting with Sunday.

◆ get_FirstDayOfWeek()

ASPOSECPP_SHARED_API DayOfWeek System::Globalization::DateTimeFormatInfo::get_FirstDayOfWeek ( ) const

Gets first day of week.

Returns
Wek day.

◆ get_FullDateTimePattern()

ASPOSECPP_SHARED_API String System::Globalization::DateTimeFormatInfo::get_FullDateTimePattern ( ) const

Gets full date and time pattern.

Returns
Format string.

◆ get_InvariantInfo()

static ASPOSECPP_SHARED_API const DateTimeFormatInfoPtr& System::Globalization::DateTimeFormatInfo::get_InvariantInfo ( )
static

Gets invariant date and time formatter.

Returns
Format info object.

◆ get_IsReadOnly()

ASPOSECPP_SHARED_API bool System::Globalization::DateTimeFormatInfo::get_IsReadOnly ( ) const

Checks whether formatter is read-only.

Returns
True if formatter is read-only, false otherwise.

◆ get_LongDatePattern()

ASPOSECPP_SHARED_API String System::Globalization::DateTimeFormatInfo::get_LongDatePattern ( ) const

Gets long date pattern.

Returns
Format string.

◆ get_LongTimePattern()

ASPOSECPP_SHARED_API String System::Globalization::DateTimeFormatInfo::get_LongTimePattern ( ) const

Gets long time pattern.

Returns
Format string.

◆ get_MonthDayPattern()

ASPOSECPP_SHARED_API String System::Globalization::DateTimeFormatInfo::get_MonthDayPattern ( ) const

Gets month day pattern.

Returns
Format string.

◆ get_MonthGenitiveNames()

ASPOSECPP_SHARED_API ArrayPtr<String> System::Globalization::DateTimeFormatInfo::get_MonthGenitiveNames ( ) const

Gets month names in genitive form.

Returns
Array of month names, starting with January.

◆ get_MonthNames()

ASPOSECPP_SHARED_API ArrayPtr<String> System::Globalization::DateTimeFormatInfo::get_MonthNames ( ) const

Gets month names.

Returns
Array of month names, starting with January.

◆ get_NativeCalendarName()

ASPOSECPP_SHARED_API String System::Globalization::DateTimeFormatInfo::get_NativeCalendarName ( ) const

Gets native calendar name if available.

Returns
Native calendar name.

◆ get_PMDesignator()

ASPOSECPP_SHARED_API String System::Globalization::DateTimeFormatInfo::get_PMDesignator ( ) const

Gets PM designator.

Returns
PM designator string.

◆ get_RFC1123Pattern()

ASPOSECPP_SHARED_API String System::Globalization::DateTimeFormatInfo::get_RFC1123Pattern ( ) const

Gets RFC1123 pattern.

Returns
Format string.

◆ get_ShortDatePattern()

ASPOSECPP_SHARED_API String System::Globalization::DateTimeFormatInfo::get_ShortDatePattern ( ) const

Gets short date pattern.

Returns
Format string.

◆ get_ShortestDayNames()

ASPOSECPP_SHARED_API ArrayPtr<String> System::Globalization::DateTimeFormatInfo::get_ShortestDayNames ( ) const

Gets shortest day names possible.

Returns
Array of shortest day names possible, starting with Sunday.

◆ get_ShortTimePattern()

ASPOSECPP_SHARED_API String System::Globalization::DateTimeFormatInfo::get_ShortTimePattern ( ) const

Gets short time pattern.

Returns
Format string.

◆ get_SortableDateTimePattern()

ASPOSECPP_SHARED_API String System::Globalization::DateTimeFormatInfo::get_SortableDateTimePattern ( ) const

Gets sortable date and time pattern.

Returns
Format string.

◆ get_TimeSeparator()

ASPOSECPP_SHARED_API String System::Globalization::DateTimeFormatInfo::get_TimeSeparator ( ) const

Gets time separator.

Returns
Time components separator character.

◆ get_UniversalSortableDateTimePattern()

ASPOSECPP_SHARED_API String System::Globalization::DateTimeFormatInfo::get_UniversalSortableDateTimePattern ( ) const

Gets universal sortable date and time pattern.

Returns
Format string.

◆ get_YearMonthPattern()

ASPOSECPP_SHARED_API String System::Globalization::DateTimeFormatInfo::get_YearMonthPattern ( ) const

Gets year and month pattern.

Returns
Format string.

◆ GetAbbreviatedDayName()

ASPOSECPP_SHARED_API String System::Globalization::DateTimeFormatInfo::GetAbbreviatedDayName ( DayOfWeek  day_of_week) const

Gets abbreviated week day name.

Parameters
day_of_weekDay to get name of.
Returns
Week day name.

◆ GetAbbreviatedEraName()

ASPOSECPP_SHARED_API String System::Globalization::DateTimeFormatInfo::GetAbbreviatedEraName ( int  era) const

Gets abbreviated era name.

Parameters
eraEra to get name of.
Returns
Era name.

◆ GetAbbreviatedMonthName()

ASPOSECPP_SHARED_API String System::Globalization::DateTimeFormatInfo::GetAbbreviatedMonthName ( int  month) const

Gets abbreviated month name.

Parameters
monthMonth to get name of.
Returns
Month name.

◆ GetAllDateTimePatterns() [1/2]

ASPOSECPP_SHARED_API ArrayPtr<String> System::Globalization::DateTimeFormatInfo::GetAllDateTimePatterns ( ) const

Gets all patterns in which date and time values can be formatted.

Returns
Array of patterns.

◆ GetAllDateTimePatterns() [2/2]

ASPOSECPP_SHARED_API ArrayPtr<String> System::Globalization::DateTimeFormatInfo::GetAllDateTimePatterns ( char16_t  format) const

Gets all patterns in which date and time values can be formatted using specified format string.

Returns
Array of patterns.

◆ GetDayName()

ASPOSECPP_SHARED_API String System::Globalization::DateTimeFormatInfo::GetDayName ( DayOfWeek  day_of_week) const

Gets week day name.

Parameters
day_of_weekDay to get name of.
Returns
Week day name.

◆ GetEra()

ASPOSECPP_SHARED_API int System::Globalization::DateTimeFormatInfo::GetEra ( const String era_name) const

Gets era by name.

Parameters
era_nameEra name.
Returns
Era index.

◆ GetEraName()

ASPOSECPP_SHARED_API String System::Globalization::DateTimeFormatInfo::GetEraName ( int  era) const

Gets era name.

Parameters
eraEra to get name of.
Returns
Era name.

◆ GetFormat()

ASPOSECPP_SHARED_API SharedPtr<Object> System::Globalization::DateTimeFormatInfo::GetFormat ( const TypeInfo format_type)
overridevirtual

Gets formatter of specific type.

Parameters
format_typeType of formatter to get; only DateTimeFormatInfo type is supported.
Returns
Formatter or null if not availsable.

Implements System::IFormatProvider.

◆ GetInstance()

static ASPOSECPP_SHARED_API DateTimeFormatInfoPtr System::Globalization::DateTimeFormatInfo::GetInstance ( const IFormatProviderPtr provider)
static

Gets formatter associated with format provider.

Parameters
providerProvider to get format for.
Returns
Formatter associated with format provider or current thread's format if unavailable.

◆ GetLeapYearMonthName()

ASPOSECPP_SHARED_API String System::Globalization::DateTimeFormatInfo::GetLeapYearMonthName ( int  month) const

Gets leap-year month name.

Parameters
monthMonth to get name of.
Returns
Month name.

◆ GetMonthGenitiveName()

ASPOSECPP_SHARED_API String System::Globalization::DateTimeFormatInfo::GetMonthGenitiveName ( int  month) const

Gets genitive month name.

Parameters
monthMonth to get name of.
Returns
Month name.

◆ GetMonthName()

ASPOSECPP_SHARED_API String System::Globalization::DateTimeFormatInfo::GetMonthName ( int  month) const

Gets month name.

Parameters
monthMonth to get name of.
Returns
Month name.

◆ GetShortestDayName()

ASPOSECPP_SHARED_API String System::Globalization::DateTimeFormatInfo::GetShortestDayName ( DayOfWeek  day_of_week) const

Gets shortes name for the specified day of week.

◆ operator=()

DateTimeFormatInfo& System::Globalization::DateTimeFormatInfo::operator= ( const DateTimeFormatInfo )
delete

◆ ReadOnly()

static ASPOSECPP_SHARED_API DateTimeFormatInfoPtr System::Globalization::DateTimeFormatInfo::ReadOnly ( const DateTimeFormatInfoPtr info)
static

Gets read-only version of formatter.

Parameters
infoFormatter to get read-only version of.
Returns
if info is read-only, returns it, otherwise creates a copy of it and marks it as read-only.

◆ set_AbbreviatedDayNames()

ASPOSECPP_SHARED_API void System::Globalization::DateTimeFormatInfo::set_AbbreviatedDayNames ( const ArrayPtr< String > &  value)

Sets abbreviated day names.

Parameters
valueArray of abbreviated day names, starting with Sunday.

◆ set_AbbreviatedMonthGenitiveNames()

ASPOSECPP_SHARED_API void System::Globalization::DateTimeFormatInfo::set_AbbreviatedMonthGenitiveNames ( const ArrayPtr< String > &  value)

Sets abbreviated month names in genitive form.

Parameters
valueArray of abbreviated month names, starting with January.

◆ set_AbbreviatedMonthNames()

ASPOSECPP_SHARED_API void System::Globalization::DateTimeFormatInfo::set_AbbreviatedMonthNames ( const ArrayPtr< String > &  value)

Sets abbreviated month names.

Parameters
valueArray of abbreviated month names, starting with January.

◆ set_AMDesignator()

ASPOSECPP_SHARED_API void System::Globalization::DateTimeFormatInfo::set_AMDesignator ( const String value)

Sets AM designator.

Parameters
valueAM designator string.

◆ set_Calendar()

ASPOSECPP_SHARED_API void System::Globalization::DateTimeFormatInfo::set_Calendar ( const SharedPtr< Calendar > &  value)

Sets calendar associated with formatter.

Parameters
valueCalendar object.

◆ set_CalendarWeekRule()

ASPOSECPP_SHARED_API void System::Globalization::DateTimeFormatInfo::set_CalendarWeekRule ( CalendarWeekRule  value)

Sets calendar week rule associated with formatter.

Parameters
valueWeek rule.

◆ set_DateSeparator()

ASPOSECPP_SHARED_API void System::Globalization::DateTimeFormatInfo::set_DateSeparator ( const String value)

Sets date separator.

Parameters
valueDate separator.

◆ set_DayNames()

ASPOSECPP_SHARED_API void System::Globalization::DateTimeFormatInfo::set_DayNames ( const ArrayPtr< String > &  value)

Sets day names.

Parameters
valueArray of day names, starting with Sunday.

◆ set_FirstDayOfWeek()

ASPOSECPP_SHARED_API void System::Globalization::DateTimeFormatInfo::set_FirstDayOfWeek ( DayOfWeek  value)

Sets first day of week.

Parameters
valueWeek day.

◆ set_FullDateTimePattern()

ASPOSECPP_SHARED_API void System::Globalization::DateTimeFormatInfo::set_FullDateTimePattern ( const String value)

Sets full date and time pattern.

Parameters
valueFormat string.

◆ set_LongDatePattern()

ASPOSECPP_SHARED_API void System::Globalization::DateTimeFormatInfo::set_LongDatePattern ( const String value)

Sets long date pattern.

Parameters
valueFormat string.

◆ set_LongTimePattern()

ASPOSECPP_SHARED_API void System::Globalization::DateTimeFormatInfo::set_LongTimePattern ( const String value)

Sets long time pattern.

Parameters
valueFormat string.

◆ set_MonthDayPattern()

ASPOSECPP_SHARED_API void System::Globalization::DateTimeFormatInfo::set_MonthDayPattern ( const String value)

Sets month day pattern.

Parameters
valueFormat string.

◆ set_MonthGenitiveNames()

ASPOSECPP_SHARED_API void System::Globalization::DateTimeFormatInfo::set_MonthGenitiveNames ( const ArrayPtr< String > &  value)

Sets month names in genitive form.

Parameters
valueArray of month names, starting with January.

◆ set_MonthNames()

ASPOSECPP_SHARED_API void System::Globalization::DateTimeFormatInfo::set_MonthNames ( const ArrayPtr< String > &  value)

Sets month names.

Parameters
valueArray of month names, starting with January.

◆ set_PMDesignator()

ASPOSECPP_SHARED_API void System::Globalization::DateTimeFormatInfo::set_PMDesignator ( const String value)

Sets PM designator.

Parameters
valuePM designator string.

◆ set_ShortDatePattern()

ASPOSECPP_SHARED_API void System::Globalization::DateTimeFormatInfo::set_ShortDatePattern ( const String value)

Sets short date pattern.

Parameters
valueFormat string.

◆ set_ShortestDayNames()

ASPOSECPP_SHARED_API void System::Globalization::DateTimeFormatInfo::set_ShortestDayNames ( const ArrayPtr< String > &  value)

Sets shortest day names possible.

Parameters
valueArray of shortest day names possible, starting with Sunday.

◆ set_ShortTimePattern()

ASPOSECPP_SHARED_API void System::Globalization::DateTimeFormatInfo::set_ShortTimePattern ( const String value)

Sets short time pattern.

Parameters
valueFormat string.

◆ set_TimeSeparator()

ASPOSECPP_SHARED_API void System::Globalization::DateTimeFormatInfo::set_TimeSeparator ( const String value)

Sets time separator.

Returns
Time components separator character.

◆ set_YearMonthPattern()

ASPOSECPP_SHARED_API void System::Globalization::DateTimeFormatInfo::set_YearMonthPattern ( const String value)

Sets year and month pattern.

Parameters
valueFormat string.

◆ SetAllDateTimePatterns()

ASPOSECPP_SHARED_API void System::Globalization::DateTimeFormatInfo::SetAllDateTimePatterns ( const ArrayPtr< String > &  patterns,
char16_t  format 
)

Sets patterns for the specified format.