Provides culture-specific information about the format of date and time values.
Public Constructors | |
| date_time_format_info () | |
| Initializes a new instance of the xtd::globalization::date_time_format_info class. | |
| date_time_format_info (xtd::globalization::date_time_format_info &&info)=default | |
| Initializes a new instance of the xtd::globalization::date_time_format_info class with specified info. | |
| date_time_format_info (const xtd::globalization::date_time_format_info &info) | |
| Initializes a new instance of the xtd::globalization::date_time_format_info class with specified infp. | |
Public Properties | |
| auto | abreviated_day_names () const noexcept -> const xtd::array< xtd::string > & |
| Gets a one-dimensional array of type String containing the culture-specific abbreviated names of the days of the week. | |
| auto | abreviated_day_names (const xtd::array< xtd::string > &value) -> xtd::globalization::date_time_format_info & |
| Sets a one-dimensional array of type String containing the culture-specific abbreviated names of the days of the week. | |
| auto | abreviated_month_genitive_names () const noexcept -> const xtd::array< xtd::string > & |
| Gets a string array of abbreviated month names associated with the current xtd::globalization::date_time_format_info object. | |
| auto | abreviated_month_genitive_names (const xtd::array< xtd::string > &value) -> xtd::globalization::date_time_format_info & |
| Sets a string array of abbreviated month names associated with the current xtd::globalization::date_time_format_info object. | |
| auto | abreviated_month_names () const noexcept -> const xtd::array< xtd::string > & |
| Gets or a one-dimensional string array that contains the culture-specific abbreviated names of the months. | |
| auto | abreviated_month_names (const xtd::array< xtd::string > &value) -> xtd::globalization::date_time_format_info & |
| Sets or a one-dimensional string array that contains the culture-specific abbreviated names of the months. @oaram value A one-dimensional string array with 13 elements that contains the culture-specific abbreviated names of the months. For 12-month calendars, the 13th element of the array is an empty string. The array for InvariantInfo contains "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", and "". | |
| auto | am_designator () const noexcept -> const xtd::string & |
| Gets the string designator for hours that are "ante meridiem" (before noon). | |
| auto | am_designator (const xtd::string &value) noexcept -> xtd::globalization::date_time_format_info & |
| Sets the string designator for hours that are "ante meridiem" (before noon). | |
| auto | date_separator () const noexcept -> const xtd::string & |
| auto | date_separator (const xtd::string &value) noexcept -> xtd::globalization::date_time_format_info & |
| auto | day_names () const noexcept -> const xtd::array< xtd::string > & |
| auto | day_names (const xtd::array< xtd::string > &value) noexcept -> xtd::globalization::date_time_format_info & |
| auto | first_day_of_week () const noexcept -> xtd::day_of_week |
| auto | first_day_of_week (xtd::day_of_week value) noexcept -> xtd::globalization::date_time_format_info & |
| auto | full_date_time_pattern () const noexcept -> const xtd::string & |
| auto | full_date_time_pattern (const xtd::string &value) noexcept -> xtd::globalization::date_time_format_info & |
| auto | long_date_pattern () const noexcept -> const xtd::string & |
| auto | long_date_pattern (const xtd::string &value) noexcept -> xtd::globalization::date_time_format_info & |
| auto | long_time_pattern () const noexcept -> const xtd::string & |
| auto | long_time_pattern (const xtd::string &value) noexcept -> xtd::globalization::date_time_format_info & |
| auto | month_day_pattern () const noexcept -> const xtd::string & |
| auto | month_day_pattern (const xtd::string &value) noexcept -> xtd::globalization::date_time_format_info & |
| auto | month_genitive_names () const noexcept -> const xtd::array< xtd::string > & |
| auto | month_genitive_names (const xtd::array< xtd::string > &value) noexcept -> xtd::globalization::date_time_format_info & |
| auto | month_names () const noexcept -> const xtd::array< xtd::string > & |
| auto | month_names (const xtd::array< xtd::string > &value) noexcept -> xtd::globalization::date_time_format_info & |
| auto | native_calendar_name () const noexcept -> const xtd::string & |
| auto | native_calendar_name (const xtd::string &value) noexcept -> xtd::globalization::date_time_format_info & |
| auto | pm_designator () const noexcept -> const xtd::string & |
| auto | pm_designator (const xtd::string &value) noexcept -> xtd::globalization::date_time_format_info & |
| auto | rfc_1123_pattern () const noexcept -> const xtd::string & |
| auto | rfc_1123_pattern (const xtd::string &value) noexcept -> xtd::globalization::date_time_format_info & |
| auto | short_date_pattern () const noexcept -> const xtd::string & |
| auto | short_date_pattern (const xtd::string &value) noexcept -> xtd::globalization::date_time_format_info & |
| auto | short_time_pattern () const noexcept -> const xtd::string & |
| auto | short_time_pattern (const xtd::string &value) noexcept -> xtd::globalization::date_time_format_info & |
| auto | shortest_day_names () const noexcept -> const xtd::array< xtd::string > & |
| auto | shortest_day_names (const xtd::array< xtd::string > &value) noexcept -> xtd::globalization::date_time_format_info & |
| auto | sortable_date_time_pattern () const noexcept -> const xtd::string & |
| auto | sortable_date_time_pattern (const xtd::string &value) noexcept -> xtd::globalization::date_time_format_info & |
| auto | time_separator () const noexcept -> const xtd::string & |
| auto | time_separator (const xtd::string &value) noexcept -> xtd::globalization::date_time_format_info & |
| auto | universal_sortable_date_time_pattern () const noexcept -> const xtd::string & |
| auto | universal_sortable_date_time_pattern (const xtd::string &value) noexcept -> xtd::globalization::date_time_format_info & |
| auto | year_month_pattern () const noexcept -> const xtd::string & |
| auto | year_month_pattern (const xtd::string &value) noexcept -> xtd::globalization::date_time_format_info & |
Public Static Properties | |
| static auto | current_info () noexcept -> const xtd::globalization::date_time_format_info & |
| Gets a read-only xtd::globalization::date_time_format_info object that formats values based on the current culture. | |
| static auto | invariant_info () noexcept -> const xtd::globalization::date_time_format_info & |
| Gets the default read-only xtd::globalization::date_time_format_info object that is culture-independent (invariant). | |
Additional Inherited Members | |
| object ()=default | |
| Create a new instance of the ultimate base class object. | |
| virtual bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object. | |
| virtual xtd::size | get_hash_code () const noexcept |
| Serves as a hash function for a particular type. | |
| virtual type_object | get_type () const noexcept |
| Gets the type of the current instance. | |
| template<class object_t> | |
| xtd::unique_ptr_object< object_t > | memberwise_clone () const |
| Creates a shallow copy of the current object. | |
| virtual xtd::string | to_string () const |
| Returns a xtd::string that represents the current object. | |
| template<class object_a_t, class object_b_t> | |
| static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are considered equal. | |
| template<class object_a_t, class object_b_t> | |
| static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are the same instance. | |
| xtd::globalization::date_time_format_info::date_time_format_info | ( | ) |
Initializes a new instance of the xtd::globalization::date_time_format_info class.
|
default |
Initializes a new instance of the xtd::globalization::date_time_format_info class with specified info.
| info | The xtd::globalization::date_time_format_info to inititalise this instance. |
| xtd::globalization::date_time_format_info::date_time_format_info | ( | const xtd::globalization::date_time_format_info & | info | ) |
Initializes a new instance of the xtd::globalization::date_time_format_info class with specified infp.
| info | The xtd::globalization::date_time_format_info to inititalise this instance. |
|
nodiscardnoexcept |
Gets a one-dimensional array of type String containing the culture-specific abbreviated names of the days of the week.
| auto xtd::globalization::date_time_format_info::abreviated_day_names | ( | const xtd::array< xtd::string > & | value | ) | -> xtd::globalization::date_time_format_info & |
Sets a one-dimensional array of type String containing the culture-specific abbreviated names of the days of the week.
| value | A one-dimensional array of type xtd::string containing the culture-specific abbreviated names of the days of the week. The array for xtd::globalization::date_time_format_info::invariant_info contains "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", and "Sat". |
| xtd::argument_exception | The property is being set to an array that has a length that is not exactly 7. |
|
nodiscardnoexcept |
Gets a string array of abbreviated month names associated with the current xtd::globalization::date_time_format_info object.
| auto xtd::globalization::date_time_format_info::abreviated_month_genitive_names | ( | const xtd::array< xtd::string > & | value | ) | -> xtd::globalization::date_time_format_info & |
Sets a string array of abbreviated month names associated with the current xtd::globalization::date_time_format_info object.
| value | An array of abbreviated month names. |
| xtd::argument_exception | The property is being set to an array that has a length that is not exactly 13. |
|
nodiscardnoexcept |
Gets or a one-dimensional string array that contains the culture-specific abbreviated names of the months.
| auto xtd::globalization::date_time_format_info::abreviated_month_names | ( | const xtd::array< xtd::string > & | value | ) | -> xtd::globalization::date_time_format_info & |
Sets or a one-dimensional string array that contains the culture-specific abbreviated names of the months. @oaram value A one-dimensional string array with 13 elements that contains the culture-specific abbreviated names of the months. For 12-month calendars, the 13th element of the array is an empty string. The array for InvariantInfo contains "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", and "".
| xtd::argument_exception | The property is being set to an array that has a length that is not exactly 13. |
|
nodiscardnoexcept |
Gets the string designator for hours that are "ante meridiem" (before noon).
|
noexcept |
Sets the string designator for hours that are "ante meridiem" (before noon).
| value | The string designator for hours that are ante meridiem. The default for InvariantInfo is "AM". |
|
staticnodiscardnoexcept |
Gets a read-only xtd::globalization::date_time_format_info object that formats values based on the current culture.
|
staticnodiscardnoexcept |
Gets the default read-only xtd::globalization::date_time_format_info object that is culture-independent (invariant).