GetTimePhrase
(VTScada-Layer function. Must be called with a leading backslash.)
Description: | Returns a formatted time for the current user's locale |
Returns: | Text |
Usage: | Script or Steady State |
Function Groups: |
String and Buffer |
Related to: | GetDatePhrase | GetParmPhrase |
Format: | \GetTimePhrase(Time, FormatID) |
Parameters: |
Time |
Required numeric. The number of seconds since midnight |
FormatID |
Required text. The phrase identifier key specifying the time format. See: Date and Time Phrase Keys |
Comments: |
The Language property in the caller's scope is used to specify the language name (e.g. en). Defaults to the Windows system's language. |
Example:
\GetTimePhrase(Now(60), "TimeFmtHM24Hour")
returns "15:51", assuming that the current language is English and the time is 3:51pm.