%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
timeA Absolute time.
mask Time format of result string.

Note
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 year.
mm Month
dd Day
hh Hour
hb, HH Trading hour - hour in 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 day in week *.
tt 2-character shortcut of the name of day in week *.

Example
 %TimeToStr(M.TiA_01, "hh:mi:ss.mss dd-mm-rrrr")

0 komentárov

Nie ste prihlásený. Akékoľvek zmeny, ktoré vykonáte, sa označia ako anonymné. Ak už máte svoj účet, pravdepodobne sa budete chcieť prihlásiť .