From OpenSCADAWiki
Jump to: navigation, search

Time: String time (tmFStr)

Description: Getting the time in the formatted string. Recording of the format corresponds to the POSIX-function "strftime()".
Parameters:

Identifier Parameter Type Mode By defaults
val Date and time string String Return
sec Seconds Integer Input 0
form Date and time format String Input  %Y-%m-%d %H:%M:%S

Example:

using Special.FLibSYS;
test = tmFStr(SYS.time(),"%d %m %Y");
messPut("Example",0,"tmFStr(): "+test);