You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/xtd.core/include/xtd/globalization/date_time_format_info.hpp
+31-6Lines changed: 31 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -65,15 +65,34 @@ namespace xtd {
65
65
/// @brief Sets a one-dimensional array of type String containing the culture-specific abbreviated names of the days of the week.
66
66
/// @param 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".
67
67
/// @exception xtd::argument_exception The property is being set to an array that has a length that is not exactly 7.
/// @brief Gets or a one-dimensional string array that contains the culture-specific abbreviated names of the months.
79
+
/// @return 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 "".
/// @brief Sets or a one-dimensional string array that contains the culture-specific abbreviated names of the months.
82
+
/// @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 "".
83
+
/// @exception xtd::argument_exception The property is being set to an array that has a length that is not exactly 13.
/// @brief Gets the string designator for hours that are "ante meridiem" (before noon).
87
+
/// @return The string designator for hours that are ante meridiem. The default for InvariantInfo is "AM".
88
+
/// @remarks The xtd::globalization::date_time_format_info::am_designator property is used for all times from 0:00:00 (midnight) to 11:59:59.999.
89
+
/// @remarks If a custom format string includes the "tt" format specifier and the time is before noon, the xtd::date_time::to_string method includes the value of the xtd::globalization::date_time_format_info::am_designator property in place of "tt" in the result string. If the custom format string includes the "t" custom format specifier, only the first character of the xtd::globalization::date_time_format_info::am_designator property value is included. You should use "tt" for languages for which it is necessary to maintain the distinction between A.M. and P.M. An example is Japanese, in which the A.M. and P.M. designators differ in the second character instead of the first character.
90
+
/// @remarks For cultures that do not use an A.M. designator, this property returns an empty string.
/// @brief Sets the string designator for hours that are "ante meridiem" (before noon).
93
+
/// @param value The string designator for hours that are ante meridiem. The default for InvariantInfo is "AM".
94
+
/// @remarks If a custom format string includes the "tt" format specifier and the time is before noon, the xtd::date_time::to_string method includes the value of the xtd::globalization::date_time_format_info::am_designator property in place of "tt" in the result string. If the custom format string includes the "t" custom format specifier, only the first character of the xtd::globalization::date_time_format_info::am_designator property value is included. You should use "tt" for languages for which it is necessary to maintain the distinction between A.M. and P.M. An example is Japanese, in which the A.M. and P.M. designators differ in the second character instead of the first character.
95
+
/// @remarks For cultures that do not use an A.M. designator, this property returns an empty string.
/// @brief Gets a read-only xtd::globalization::date_time_format_info object that formats values based on the current culture.
160
+
/// @return A read-only xtd::globalization::date_time_format_info object based on the xtd::globalization::culture_info object for the current thread.
161
+
/// @remarks The xtd::globalization::date_time_format_info object returned by the xtd::globalization::date_time_format_info::current_info property reflects user overrides.
/// @brief Gets the default read-only xtd::globalization::date_time_format_info object that is culture-independent (invariant).
165
+
/// @return A read-only object that is culture-independent (invariant).
166
+
/// @remarks This property does not change, regardless of the current culture. Because of this, the invariant culture's xtd::globalization::date_time_format_info object can be used to produce consistent, culture-independent results in parsing and formatting operations on data that is multi-cultural. For example, if date and time data from multiple cultures is to be persisted in string form, it can be formatted by using the xtd::globalization::date_time_format_info object of the invariant culture and saved. It can then be parsed by using the invariant culture's xtd::globalization::date_time_format_info object.
0 commit comments