ACC SHELL

Path : /usr/share/YaST2/modules/
File Upload :
Current File : //usr/share/YaST2/modules/Timezone.ybc

YaST bytecode 1.4.0Timezone8Timezone.ycpArchLanguageMiscModeStageStringProductFeaturestimezone		hwclock	
default_timezone	
user_decisionuser_hwclock
ntp_useddiffmodifiedwindows_partition
call_mkinitrdyast2zonetab		obsoleted_zones		pushname	zonemap	lang2tz		systz_calledget_lang2tz		get_zonemap	Set	UpdateTimezone		ReadTimezoneCallMkinitrd SetTime						!SystemTime2HWClock"GetTimezoneForLanguage			#SetTimezoneForLanguage	$GetLanguageForTimezone		%GetCountryForTimezone		&GetTimezoneCountry		'GetDateTime	(ResetZonemap)ProposeLocaltime*MakeProposal	+	Selection,Region-Save.GetDateTimeMap/	CheckTime			0	CheckDate			1utc_only2PushVal3PopVal4Modified5Import6Export7Summary	*		#

',-

027<?BIzone	really.tmz	?^w  year	month	day	hour	minute	second	!!""sys_language	default_timezone	##sys_language	$$tz	%%tz	&&zone	''
	real_time
locale_format((>))G**Wforce_resetlanguage_changed++num,,--..//hour	minute	second	00#day	month	year	11722B33K44Y55dsettings66w7793SCRReadWriteExecute0country3Archsparc
board_iseriesppc32s390	board_mac
board_chrp
board_prep3Languagelanguage	GetTextModeGetLang2TimezoneMap		GetGivenLanguageCountry		3Misc
SysconfigRead		3Modenormalautoinstconfiglive_installationupdate3Stageinitial	firstboot3StringCutZeros		3ProductFeaturesGetStringFeature			$$#	$'
$,$-$0
$2$7$<$?$B
Mideast/Riyadh87Asia/RiyadhMideast/Riyadh88Asia/RiyadhMideast/Riyadh89Asia/Riyadh$I
2Africa/Timbuktu
Africa/BamakoAmerica/Buenos_AiresAmerica/Argentina/Buenos_AiresAmerica/VirginAmerica/St_Thomas
Asia/Macao
Asia/Macau
Asia/Tel_AvivAsia/Jerusalem
Australia/ACTAustralia/Canberra
Australia/NSWAustralia/SydneyAustralia/NorthAustralia/DarwinAustralia/QueenslandAustralia/BrisbaneAustralia/SouthAustralia/AdelaideAustralia/TasmaniaAustralia/HobartAustralia/VictoriaAustralia/MelbourneAustralia/WestAustralia/PerthBrazil/AcreAmerica/Rio_BrancoBrazil/EastAmerica/Sao_PauloBrazil/WestAmerica/ManausCanada/AtlanticAmerica/HalifaxCanada/CentralAmerica/WinnipegCanada/East-SaskatchewanAmerica/ReginaCanada/EasternAmerica/TorontoCanada/MountainAmerica/EdmontonCanada/NewfoundlandAmerica/St_JohnsCanada/PacificAmerica/VancouverCanada/SaskatchewanAmerica/ReginaCanada/YukonAmerica/WhitehorseChile/ContinentalAmerica/SantiagoChile/EasterIslandPacific/EasterEgyptAfrica/CairoEurope/Belfast
Europe/LondonHongkongAsia/Hong_KongIcelandAtlantic/ReykjavikIsraelAsia/JerusalemJamaicaAmerica/JamaicaJapan
Asia/TokyoMexico/BajaNorteAmerica/TijuanaMexico/BajaSurAmerica/MazatlanMexico/GeneralAmerica/Mexico_CityROK
Asia/Seoul	US/AlaskaAmerica/AnchorageUS/AleutianAmerica/Adak
US/ArizonaAmerica/Phoenix
US/CentralAmerica/ChicagoUS/East-IndianaAmerica/Indiana/Indianapolis
US/EasternAmerica/New_York	US/HawaiiPacific/HonoluluUS/Indiana-StarkeAmerica/Indiana/KnoxUS/MichiganAmerica/DetroitUS/MountainAmerica/Denver
US/PacificAmerica/Los_AngelesUS/SamoaPacific/Pago_Pago$
$$	$
$%(size4base_lang2tz$
	SCR::Read
.target.yast2lang2tz.ycp(
&

&		union
-%(size4zmap	$
	eval	SCR::Read
.target.yast2timezone_raw.ycp(
&
	&				sorta	b	
lsorted	lsorted_r$		lsort	name	name$		lsort	name	name-&&		name-%zmap	sel	$
&	$
)&&
size
!haskey

entries
	4&
+
&+			+				

name / 	

entries		(&&!	4textmodecmd	$(&&!4,SCR::Execute.target.bash/usr/bin/xset -dpms,SCR::Execute.target.bash/usr/bin/xset s reset,SCR::Execute.target.bash/usr/bin/xset s off$+			/usr/sbin/zic -l ,	
y2milestone	

Set cmd %1,	
y2milestone	

Set ret %1SCR::Execute.target.bash_output(!4	&
+			/sbin/hwclock --hctosys 	(&&	--localtime4(
!4&I/sbin/hwclock --systz --localtime --noadjfile && touch /dev/shm/warpclock&,	
y2milestone	

Set cmd %1,	
y2milestone	

Set ret %1SCR::Execute.target.bash_output(&&!4,SCR::Execute.target.bash/usr/bin/xset s on,SCR::Execute.target.bash/usr/bin/xset +dpms(
4 &!
,"	
y2milestone	
Set default timezone: <%1>,%	
y2milestone	
Set timezone:%1 sel:%2 name:%3
-&
%.updated_tmz	$0
	(2haskey	43&4
			,5	
y2milestone	
updating timezone from %1 to %2	
-8
%?&A	.sysconfig.clock.HWCLOCK	&B.sysconfig.clock.TIMEZONE&C
!.sysconfig.clock.DEFAULT_TIMEZONE
(G4Hzmap	sel$I
$J
)K&&
size
!haskey

entries
4L&M
+
&O+			+				

name / 	

entries%^&b	-u(c&&!4dlang2tz		new_timezone	$f
$h

	,i	
y2milestone	
Timezone new_timezone %1
(k
4l,m
(p!4q,r-t%w,y	
y2milestone	
calling mkinitrd...,zSCR::Execute.target.bashO/sbin/mkinitrd >> /var/log/YaST2/y2logmkinitrd 2>> /var/log/YaST2/y2logmkinitrd,{	
y2milestone	
... done-|% (!4date	cmd	
$		
sformat		
 --date="%1/%2/%3 %4:%5:%6" 						$(&&	size		--localtime4&+			+			TZ= &+			+			+			/sbin/hwclock --set 	,	
y2milestone	
SetTime cmd %1,SCR::Execute.target.bash&+			/sbin/hwclock --hctosys 	,	
y2milestone	
SetTime cmd %1,SCR::Execute.target.bash&%!(!4cmd	$
(&&	size		--localtime4&
+			+			TZ= &
+			/sbin/hwclock --systohc 	,	
y2milestone	
cmd %1
,SCR::Execute.target.bash
%"
lang2timezone		ret	$
$

			,	
y2milestone	
4language %1 default timezone %2 returned timezone %3		
-
%#tmz	$
"	
US/Eastern,	
y2debug	
 language %1 proposed timezone %2	
(
4,
%$lang	(||		&	$
,				foreachcode	tmz	(&&	||
!		issubstring		
_&
-
%%-$	%&zmapsel$
eval	SCR::Read
.target.yast2timezone_raw.ycp$
)&&
size
!haskey

entries
	4&
+
-+			+				

name / 	

entries		%
'cmd	date_format	out
local_date		$
$
&&	+%c+%Y-%m-%d - %H:%M:%S,	
y2milestone	
GetDateTime hwclock %1 real:%2		(&&!	!4ds$(4outtzd	t$SCR::Execute.target.bash_outputdate +%z$	stdout,	
y2milestone	
GetDateTime tcd=%1$	tointeger			substring		(4&+*&	tointeger			substring		&+*<( 			substring		-&!-,"	
y2milestone	
GetDateTime ds %1 diff %2&%
(&	--localtime4'&(
		
sformat		
TZ=%1 &*
+			
		
sformat		
!/bin/date "%1" "--date=now %2sec"
*4.&/
		
sformat		
/bin/date "%1"
,1	
y2milestone	
GetDateTime cmd=%1
$2
SCR::Execute.target.bash_output
$3
			deletechars				
stdout
,5	
y2milestone	
GetDateTime local_date='%1'
-7
%>(&?	%G)-I||&&%W*
clock_setting	date	ret	
,Z	
y2milestone	
force_reset: %1	,[	
y2milestone	
5language_changed: %1 user_decision %2 user_hwclock %3	(^	,_((a||!	4b&c	-u(d)4e&f	--localtime(i	4j(m
4n,o
&t4w(|||||globalstimezone4~(	4,	
y2milestone	
HUser has chosen a timezone; not following language - only retranslation.,4local_timezone	$"
US/Eastern(4,&
4(	4,	
y2error	
*Can't follow language - only retranslation,$
UTCcountry(	--localtime&

Local Timecountry&
+			+			Hardware Clock Set Tocountry 
$
',	
y2milestone	
MakeProposal hwclock %1	$
+			+			+			+			 - 
 
(
&
			add
NTP configuredcountry-
%+zmap	trl	$
$
						maplistkey	name	
	entries
&
				sorta	b	
lsorted	lsorted_r$		lsort		$		lsort		-&&		,	
y2debug	
trl = %1
-mapliste
itemid		%,num$	-maplistentry
&	+	-itemid		
name%-(4-,
SCR::Write.sysconfig.clock.TIMEZONE,
SCR::Write!.sysconfig.clock.DEFAULT_TIMEZONE
,
SCR::Write.sysconfig.clock.HWCLOCK	,
SCR::Write.sysconfig.clock,	
y2milestone	
"Save Saved data for timezone: <%1>(&&!4,-%.retdparts
$	
$				filterv	
			splitstring			' -:	size	
'		year		'
	month		'	day		'	hour		'
	minute		'	second		,	
y2milestone	
GetDateTimeMap dparts %1 ret %2		-	%/rettmp$
$
	tointeger	(
-&
&&&&


&
	tointeger	(
-&
&&&&


<&
	tointeger	(
-&
&&&&


<- 
%#0mdaysretyeamonda$%
	$&
$'
	tointeger	$(
	tointeger	$)
	tointeger	(*||||


-+&,
&&&&


(-&&%
||%
d%
4.'/
&1
&&&&



-
&2
&&&&


-3
%71,9	
y2milestone	
YArch::sparc () %1 Arch::board_iseries () %2 Arch::board_chrp () %3 Arch::board_prep () %4-;||||||%B2&Dhwclock	timezone,E	
y2milestone	
PushVal map %1%K3,M	
y2milestone	
"before Pop: timezone %1 hwclock %2	(Nhaskeyhwclock&O		hwclock	(Phaskeytimezone&Q	timezone&R
,S	
y2milestone	
!after Pop: timezone %1 hwclock %2	%Y4-[||||	timezone		hwclock	%d5(g
,h2(jhaskey	hwclock4k&l			hwclockUTCUTC-u--localtime&m,o		timezone-p%w6ret$y	timezonehwclock	-uUTC	localtime-}	%7HTML
clock_setting	ret	3HTMLList		$	UTCcountry(	--localtime&	
Local Timecountry&	+			+			Hardware Clock Set Tocountry 	$			
sformat		
Current Time Zone: %1country	-
	

ACC SHELL 2018