Porovnávané verzie
porovnané s
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
Komentár:
msolansky: doplnena poznamka o nahradzovani masky
%TimeToStr function
Function
The function converts an absolute time to a text string according to entered mask.
Declaration
Blok kódu | ||||
---|---|---|---|---|
| ||||
TEXT %TimeToStr( TIME in TimeA, TEXT in mask ) |
Parameters
timeA | Absolute time. |
mask | Time The time format of the result string. |
Note
Position The position of individual time components is given by the occurrence of the following strings in the entered mask.
String | Description |
yyyy or rrrr | 4-digit year representation. |
yy or rr | Last two digits of the year. |
mm | Month |
dd | Day |
hh | Hour |
hb, HH | Trading hour - hour in the day from 1 to 25. |
mi | Minute |
ss | Second |
mss | Millisecond |
tttt | Name of day in week *. |
ttt | 3-character shortcut of the name of the day in week *. |
tt | 2-character shortcut of the name of the day in week *. |
ZZZ | UTC offset in hours using format "(+|-)hh". |
ZZZZZ | UTC offset in hours and minutes using the format "(+|-)hhmi". |
ZZZZZZ | UTC offset in hours and minutes using the format "(+|-)hh:mi". |
Only the first appearance of given time component in mask is being replaced. In case of multiple masks of the same time component with different lengths (e.g. yy and yyyy), only the longest one will be replaced.
Example
Blok kódu | ||||
---|---|---|---|---|
| ||||
%TimeToStr(M.TiA_01, "hh:mi:ss.mss dd-mm-rrrr") |