Convert the specified time to a string, according current locale (international) settings.
Syntax |
timeToString(int hh, int mm, int ss): string timeToString(int hh, int mm, int ss, int fmt): string (#2) |
---|---|
hh |
Hour number (0-23) |
mm |
Minutes number (0-59) |
ss |
Seconds number (0-59) |
fmt |
Time format code (#1) |
Result |
Return generated string, or "" on failure |
Notes |
From RDE v3.54.1-21, there is an overload for this function (#2) you can specifiy the format (#1). |
Available time format code (#1) are the following:
Label |
Description |
---|---|
X_TextDate |
Default format |
X_ISODate |
ISO 8601 extended format |
X_LocalDate |
Locale dependent format |