Country settings |
modules/Timezone.ycp |
Timezone related stuff | |
|
|
This module has an unstable interface. |
if anyuthing was modified (currently for auto client only)
If there is windows partition, assume that local time is used
get_lang2tz()
Get the language --> timezone conversion map.
- Return value:
-
conversion map
- See
-
get_zonemap()
get_zonemap()
Get the timezone database.
- Return value:
-
timezone DB (map)
- See
-
get_lang2tz()
Set()
Set system to selected timezone.
- Parameters:
-
zone really
- Return value:
-
the number of the region that contains the timezone
Convert the duplicated timezone to the only one supported Temporary solution - a result of discussion of bug #47472
- Parameters:
-
tmz current timezone
Read timezone settings from sysconfig
Timezone()
The module constructor. Sets the proprietary module data defined globally for public access. This is done only once (and automatically) when the module is loaded for the first time. Calls Set() in initial mode. Reads current timezone from sysconfig in normal mode.
- See
-
Set()
Set the new time and date given by user
- Parameters:
-
year month day hour minute second
Set the Hardware Clock to the current System Time.
GetTimezoneForLanguage()
Get the timezone for the given system language.
- Parameters:
-
sys_language default_timezone
- Return value:
-
The timezone for this language, e.g. "US/Eastern" or the default value if nothing found.
- See
-
-
Set the timezone for the given system language.
- Parameters:
-
sys_language
- Return value:
-
the number of the region that contains the timezone
Return the language code for given timezone (by reverse searching the "language -> timezone" map)
- Parameters:
-
tz
Return the country part of language code for given timezone
- Parameters:
-
tz
Return translated country name of given timezone
- Parameters:
-
zone
GetDateTime()
Get the output of date "+%H:%M:%S - %Y-%m-%d" or in locale defined format
- Parameters:
-
real_time locale_format
- Return value:
-
The string output.
Clear the internal map with timezones, so the timezone data could be retranslated next time when they are needed
Return true if localtime should be proposed as default Based on current hardware configuration: Win partitions present or 32bit Mac
Return proposal list of strings.
- Parameters:
-
force_reset language_changed
- Return value:
-
user readable description. If force_reset is true reset the module to the timezone stored in default_timezone.
Selection()
Return a map of ids and names to build up a selection list for the user. The key is used later in the Set function to select this timezone. The name is a translated string.
- Parameters:
-
num
- Return value:
-
map for timezones 'timezone_id' is used internally in Set and Probe functions. 'timezone_name' is a user-readable string. Uses Language::language for translation.
- See
-
Set()
Return list of regions for timezone selection list
Save()
Return current date and time in the map
save the initial data
restore the original data from internal map
was anything modified?
AutoYaST interface function: Get the Timezone configuration from a map.
- Parameters:
-
settings imported map
- Return value:
-
success
AutoYaST interface function: Return the Timezone configuration as a map.
- Return value:
-
with the settings
AutoYaST interface function: Return the summary of Timezone configuration as a map.
- Return value:
-
summary string (html)