Technical information
RMS NetLinx Scheduling Client API
176
RMS Enterprise - NetLinx Programmer’s Guide
Setting The Client Time and Date Format
Use the following functions to format the Client time and date format:
RmsSetGuiDatePattern
RmsSetGuiTimePattern
The date and time pattern used by the following functions pattern follows the Java 1.4
SimpleDateFormat conventions.
RmsSetGuiDatePattern
Description:
This function is used to manually set a date pattern which will be used for formatting dates on all touch panels.
Function Syntax: DEFINE_FUNCTION CHAR RmsSetGuiDatePattern(CHAR datePattern);
Arguments:
datePattern:
• M/d/yy
• yyyy-MM-dd
Sample patterns for the date October 7th, 2013:
• M/d/yy = 10/7/13
• yyyy-MM-dd = 2013-10-07
Example: RmsSetGuiDatePattern("yyyy-MM-dd")
Sets the date pattern to yyyy-MM-dd
RmsSetGuiTimePattern
Description:
This function is used to manually set a time pattern which will be used for formatting times on all touch panels.
Function Syntax: DEFINE_FUNCTION CHAR RmsSetGuiTimePattern(CHAR timePattern);
Arguments:
timePattern:
• h:mm a
• HH:mm
Sample patterns for the time 5:38 PM:
• h:mm = 5:38 PM
• HH:mm = 17:38
Example: RmsSetGuiTimePattern("HH:mm")
Sets the date pattern to HH:mm