pyanaconda.modules.timezone.timezone_interface ============================================== .. py:module:: pyanaconda.modules.timezone.timezone_interface Classes ------- .. autoapisummary:: pyanaconda.modules.timezone.timezone_interface.TimezoneInterface Module Contents --------------- .. py:class:: TimezoneInterface Bases: :py:obj:`pyanaconda.modules.common.base.KickstartModuleInterface` DBus interface for Timezone module. .. py:method:: connect_signals() Connect the signals. .. py:property:: Timezone :type: Str Timezone the system will use. .. py:method:: SetTimezoneWithPriority(timezone, priority) Set the timezone with a given priority. Sets the system time zone to timezone, if the already stored timezone does not have higher priority. To view a list of available time zones, use the `timedatectl list-timezones` command. Example: Europe/Prague The priority is a positive number. Use values defined in pyanaconda.core.constants as TIMEZONE_PRIORITY_* : TIMEZONE_PRIORITY_DEFAULT = 0 TIMEZONE_PRIORITY_LANGUAGE = 30 TIMEZONE_PRIORITY_GEOLOCATION = 50 TIMEZONE_PRIORITY_KICKSTART = 70 TIMEZONE_PRIORITY_USER = 90 :param timezone: a string with a timezone specification in the Olson db aka tzdata format :param priority: priority for the timezone; see the respective constants .. py:method:: GetAllValidTimezones() Get valid timezones. Return a dictionary, where keys are region ids and values are lists of timezone names in the region. :return: a dictionary of timezone lists per region .. py:property:: IsUTC :type: Bool Is the hardware clock set to UTC? The system assumes that the hardware clock is set to UTC (Greenwich Mean) time, if true. :return: True, if the hardware clock set to UTC, otherwise False .. py:property:: NTPEnabled :type: Bool Is automatic starting of NTP service enabled? :return: True, if the service is enabled, otherwise false. .. py:property:: TimeSources :type: List[Structure] A list of time sources. :return: a list of time source data :rtype: a list of structures of the type TimeSourceData .. py:method:: StartGeolocationWithTask() Start geolocation with task. :return: a DBus path of the task .. py:property:: GeolocationResult :type: Structure Get geolocation result, if any. :return DBusData: geolocation result data .. py:method:: GetSystemDateTime() Get the current local date and time of the system. The timezone set via the Timezone property affects the returned data. :return: a string representing the date and time in ISO 8601 format .. py:method:: SetSystemDateTime(date_time_spec) Set the current local date and time of the system. The timezone set via the Timezone property will be applied to the received data. :param date_time_spec: a string representing the date and time in ISO 8601 format