################################### ### (C) 2004, Tilo Kühn, v1.0 ################################### ### BS : Zeit -> 14 Byte String ################################### #5000|"Text"|Remanent(1/0)|Anz.Eingänge|.n.|Anzahl Ausgänge|.n.|.n. #5001|Anzahl Eingänge|Ausgänge|Offset|Speicher|Berechnung bei Start #5002|Index Eingang|Default Wert #5003|Speicher|Initwert|Remanent #5004|ausgang|Initwert|runden binär (0/1)|typ (1-send/2-sbc) #5012|abbruch bei bed. (0/1)|bedingung|formel|zeit|pin-ausgang|pin-offset|pin-speicher|pin-neg.ausgang 5000|"#Zeitfunktionen\Datum+Zeit -> String Update .1"|0|4|"Zeit (0==aktuelle)"|"Format Datum (0..5)"|"Update (sec.)"|"Format Zeit (0,1)"|4|"Datum+Uhrzeit"|"Differenz"|"Datum"|"Uhrzeit" 5001|4|4|1|8|1 # EN[x] 5002|1|0|0 # gespeicherte Zeit (0=aktuelle) 5002|2|0|0 # Format Date (not supported by experte) 5002|3|1|0 # Update in Sekunden 5002|4|0|0 # Format Time (not supported by experte) # Ausgänge # Datum+Uhrzeit (DD.MM.YYYY, HH:MM:SS) 5004|1|""|0|2|1 # Differenz ( [X d, ]HH:MM:SS) 5004|2|""|0|2|1 # Datum (DD.MM.YYYY) 5004|3|""|0|2|1 # Uhrzeit (HH.MM.SS) 5004|4|""|0|2|1 # Speicher 5003|1|0|0 5003|2|0|0 5003|3|0|0 5003|4|0|0 # SN[4] date format string 5003|5|0|0 # SN[5] time format string 5003|6|0|0 # SN[6] monatsnamen 5003|7|0|0 # SN[7] temp 5003|8|0|0 # SN[8] monatsnamen kurz # Logik # Init # Monatsnamen in Deutsch 5012|0|"EI==1"|"['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember']"|""|0|0|6|0 5012|0|"EI==1"|"['Jan.','Feb.','März','Apr.','Mai','Juni','Juli','Aug.','Sep.','Okt.','Nov.','Dez.']"|""|0|0|8|0 5012|0|"(EI==1 or EC[2])" |"'%d.%m.%Y'"|""|0|0|4|0 5012|0|"(EI==1 or EC[2]) and EN[2]==1"|"'%d.%m.%y'"|""|0|0|4|0 5012|0|"(EI==1 or EC[2]) and EN[2]==2"|"'%d. %mm %Y'"|""|0|0|4|0 5012|0|"(EI==1 or EC[2]) and EN[2]==3"|"'%d. %mm %y'"|""|0|0|4|0 5012|0|"(EI==1 or EC[2]) and EN[2]==4"|"'%d. %mmm %Y'"|""|0|0|4|0 5012|0|"(EI==1 or EC[2]) and EN[2]==5"|"'%d. %mmm %y'"|""|0|0|4|0 5012|0|"(EI==1 or EC[4])" |"'%H:%M:%S'"|""|0|0|5|0 5012|0|"(EI==1 or EC[4]) and EN[4]==1"|"'%H:%M'"|""|0|0|5|0 5012|0|"EN[1]==0"|"__import__('time').time()"|""|0|0|1|0 5012|0|"EN[1]==0"|"__import__('time').time()"|""|0|0|2|0 5012|0|"EN[1]!=0"|"EN[1]"|""|0|0|1|0 5012|0|"EN[1]!=0"|"__import__('time').time()-EN[1]"|""|0|0|2|0 # !!!Hack für Sonnen Auf/Untergangsgangsoperator!!! 5012|0|"EN[1]>0 and EN[1]<24"|"__import__('time').mktime(__import__('time').strptime(__import__("string").join([str(int(EN[1])%24),str(int(EN[1]*60)%60),str(int(EN[1]*3600)%60),str(int(__import__('time').gmtime()[2])),str(int(__import__('time').gmtime()[1])),str(int(__import__('time').gmtime()[0]))],' '),"%H %M %S %d %m %Y"))"|""|0|0|1|0 5012|0|"EN[1]>0 and EN[1]<24"|"SN[1]"|""|0|0|2|0 # !!!Hack für Sonnen Auf/Untergangsgangsoperator!!! # erzeugt Datum 5012|0|"EI==1 or OC[1] or EC[1] or EC[2]"|"__import__('string').replace(SN[4],'%mmm',SN[6][__import__('time').localtime(SN[1])[1]-1])"|""|0|0|7|0 5012|0|"EI==1 or OC[1] or EC[1] or EC[2]"|"__import__('string').replace(SN[7],'%mm' ,SN[8][__import__('time').localtime(SN[1])[1]-1])"|""|0|0|7|0 5012|0|"EI==1 or OC[1] or EC[1] or EC[2]"|"__import__('time').strftime(SN[7],__import__('time').localtime(SN[1]))"|""|3|0|0|0 # erzeugt Zeit 5012|0|"EI==1 or OC[1] or EC[1] or EC[4]"|"__import__('time').strftime(SN[5],__import__('time').localtime(SN[1]))"|""|4|0|0|0 # erzeugt Uhrzeit und Datum 5012|0|"EI==1 or AC[3] or AC[4]"|"__import__('string').join([AN[3],AN[4]],', ')"|""|1|0|0|0 # erzeugt den Prefix 'X d", wobei X die anzahl der tage ist, wenn X>0 ist 5012|0|"1"|"''"|""|0|0|3|0 5012|0|"SN[2] and int(SN[2]/86400)>0"|"__import__('string').join([str(int(SN[2]/86400)),' d, '],'')"|""|0|0|3|0 # erzeugt die Differenzzeit 5012|0|"SN[2] and (EI==1 or OC[1] or EC[1])"|"__import__('string').join([SN[3],__import__('time').strftime('%H:%M:%S',__import__('time').gmtime(SN[2]))],'')"|""|2|0|0|0 5012|0|"not SN[2] and (EI==1 or OC[1] or EC[1])"|"'---'"|""|2|0|0|0 # Timer restarten 5012|0|"EN[3] and (EI==1 or OC[1] or EC[1])"|""|"EN[3]"|0|1|0|0 #5012|0|"EI==1 or OC[1]"|"__import__('string').join([__import__('time').localtime('Hallo'),'%5.2f' % 123.4567])"|""|1|0|0|0