
functions
files
intro
|
|
Country settings |
modules/Timezone.ycp |
Timezone related stuff |
|
|
Imports
- Arch
- Language
- Misc
- Mode
- ProductFeatures
- Stage
- String
Global Variables
Global Functions
|
|
|
global windows_partition -> boolean
|
|
If there is windows partition, assume that local time is used
global Set (string zone, boolean really) -> integer
|
|
Set()
Set system to selected timezone.
- Parameters:
- Return value:
|
the number of the region that contains the timezone
|
global UpdateTimezone (string tmz) -> string
|
|
Convert the duplicated timezone to the only one supported
Temporary solution - a result of discussion of bug #47472
- Parameters:
global Timezone () -> void
|
|
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.
@param -
- Return value:
- See:
-
global SetTime (string year, string month, string day, string hour, string minute, string second) -> void
|
|
Set the new time and date given by user
- Parameters:
year |
|
month |
|
day |
|
hour |
|
minute |
|
second |
|
global GetTimezoneForLanguage (string sys_language, string default_timezone) -> string
|
|
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:
-
global SetTimezoneForLanguage (string sys_language) -> void
|
|
Set the timezone for the given system language.
- Parameters:
- Return value:
|
the number of the region that contains the timezone |
global GetTimezoneCountry (string zone) -> string
|
|
Return translated country name of given timezone
- Parameters:
global GetDateTime (boolean real_time, boolean locale_format) -> string
|
|
GetDateTime()
Get the output of date "+%H:%M:%S - %Y-%m-%d" or in locale defined format
- Parameters:
- Return value:
- See:
-
global MakeProposal (boolean force_reset, boolean language_changed) -> string
|
|
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. |
global Selection (integer num) -> list
|
|
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.
@param -
- Parameters:
- 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:
-
Return list of regions for timezone selection list
Save()
Save timezone to target sysconfig.
@param -
- Return value:
global GetDateTimeMap () -> map
|
|
Return current date and time in the map
|