.. index:: pair: struct; EE::System::DateTimeLocale .. _doxid-struct_e_e_1_1_system_1_1_date_time_locale: struct EE::System::DateTimeLocale ================================= .. toctree:: :hidden: Resolved locale information used by the date/time controls. The standard library is used where it exposes the information. Fields that are not available portably use one centralized locale-name fallback instead of leaking locale assumptions into :ref:`UI ` code. .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct DateTimeLocale { // fields :ref:`DateOrder` :target:`dateOrder` { :ref:`DateOrder::DMY` }; char :target:`dateSeparator` { '/' }; :ref:`HourCycle` :target:`hourCycle` { :ref:`HourCycle::H24` }; :ref:`Uint8` :target:`firstDayOfWeek` { 1 }; std::string :target:`am` { "AM" }; std::string :target:`pm` { "PM" }; std::array :target:`shortWeekdayNames` { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }; std::array :target:`weekdayNames` { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" }; std::array :target:`shortMonthNames` { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; std::array :target:`monthNames` { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }; // methods std::string :target:`datePattern`() const; std::string :target:`timePattern`(bool showSeconds = false, bool showMilliseconds = false, :ref:`HourCycle` requestedCycle = :ref:`HourCycle::Locale`) const; std::string :target:`dateTimePattern`(bool showSeconds = false, bool showMilliseconds = false, :ref:`HourCycle` requestedCycle = :ref:`HourCycle::Locale`) const; bool :target:`operator==`(const DateTimeLocale&) const; static DateTimeLocale :target:`system`(); static DateTimeLocale :target:`fromLocaleName`(std::string_view localeName); };