%TimeToStr function


Function
The function converts an absolute time to a text string according to entered mask.
Declaration
TEXT %TimeToStr(
   TIME in TimeA, 
   TEXT in mask
 )
Parameters
timeAAbsolute time.
maskTime format of result string.
Note
Position of individual time components is given by the occurrence of the following strings in the entered mask.

StringDescription
yyyy or rrrr4-digit year representation.
yy or rrLast two digits of year.
mmMonth
ddDay
hhHour
hb, HHTrading hour - hour in day from 1 to 25.
miMinute
ssSecond
mssMillisecond
ttttName of day in week *.
ttt3-character shortcut of the name of day in week *.
tt2-character shortcut of the name of day in week *.
ZZZUTC offset in hours using format "(+|-)hh".
ZZZZZUTC offset in hours and minutes using format "(+|-)hhmi".
ZZZZZZUTC offset in hours and minutes using format "(+|-)hh:mi".
Example
 %TimeToStr(M.TiA_01, "hh:mi:ss.mss dd-mm-rrrr")
Napíšte komentár