DAY_TIME
Àðãóìåíòû:
SEL INT âûáîð âûõîäà
0=òåêóùàÿ äàòà
1=òåêóùåå âðåìÿ
2=äåíü íåäåëè
Q MSG âðåìÿ/äàòà, âûðàæåííûå ñèìâîëüíîé ñòðîêîé
‘YYY/MMM/DDD’ åñëè SEL = 0
‘HH:MM:SS’ åñëè SEL = 1
èìÿ äíÿ åñëè SEL = 2 (íàïðèìåð: ‘Monday’)
Îïèñàíèå:
Âîçâðàùàåò äàòó èëè âðåìÿ äíÿ, âûðàæåííûå ñèìâîëüíîé ñòðîêîé.
(*FBD ïðèìåð áëîêà “DAY_TIME”*)
(* ST Ýêâèâàëåíò: *)
Display := Day_Time (0) + ' ; ' + Day_Time (1);
(*Ôîðìàò òåêñòà: 'YYYY/MM/DD ; HH:MM:SS' *)
(* IL Ýêâèâàëåíò: Ñíà÷àëà âûçûâàåòñÿ day_time(1) *)
LD 1
DAY_TIME
ST hour_str (* ïðîìåæóòî÷íûé ðåçóëüòàò *)
LD 0
DAY_TIME
ADD ' ; '
ADD hour_str
ST Display