Country settings |
modules/Timezone.ycp |
Timezone related stuff | |
|
If there is windows partition, assume that local time is used
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
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.
- Return value:
-
-
- See
-
Set()
Set the new time and date given by user
- Parameters:
-
year month day hour minute second
GetTimezoneForLanguage()
Get the timezone for the given system language.
- Parameters:
-
sys_language default_timezone
- Return value:
-
The timezone for this language, e.g. "english-us" 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 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.
- See
-
-
MakeProposal()
Return proposal string and set system timezone.
- 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()
Save timezone to target sysconfig.
- Return value:
-
-
Return current date and time in the map