The following figure shows how to setup a DLL Box to call this function:
The following table describes the input and output parameters for this function:
| Parameter | Type | I/O | Memory Argument | Expected Values |
|---|---|---|---|---|
| return code | void | output | none | none |
| 1 | int | input | memory contains a year value entered by the caller | 4 or 2 digits. If a 2 digit year is specified, it is assumed to be after 2000 |
| 2 | int | input | memory contains a month number entered by the caller | 1 to 12 |
| 3 | int | input | memory contains a day of the month number entered by the caller | 1 to 31. validated against number of days in the month, leap years are also checked |
| 4 | char * | output | memory contains the date formatted as YYYY-MM-DD | date in format: YYYY-MM-DD |
| 5 | char * | output | memory contains result of date validation | "OK" if date is valid, otherwise error description |
The following figure shows how to setup a DLL Box to call this function:
The following table describes the input and output parameters for this function:
| Parameter | Type | I/O | Memory Argument | Expected Values |
|---|---|---|---|---|
| return code | void | output | none | none |
| 1 | int | input | memory contains a month number entered by the caller | 1 to 12 |
| 2 | int | input | memory contains a day of the month number entered by the caller | 1 to 31. validated against number of days in the month, leap years are also checked |
| 3 | char * | output | memory contains the date formatted as YYYY-MM-DD | date in format: YYYY-MM-DD |
| 4 | char * | output | memory contains result of date validation | "OK" if date is valid, otherwise error description |
The following figure shows how to setup a DLL Box to call this function:
The following table describes the input and output parameters for this function:
| Parameter | Type | I/O | Memory Argument | Expected Values |
|---|---|---|---|---|
| return code | void | output | none | none |
| 1 | int | input | memory contains an hour number entered by the caller | 1 to 23 |
| 2 | int | input | memory contains a minutes number entered by the caller | 0 to 59 |
| 3 | char * | output | memory contains the time formatted as HH:MM | time in format: HH:MM |
| 4 | char * | output | memory contains result of time validation | "OK" if time is valid, otherwise error description |
The following figure shows how to setup a DLL Box to call this function:
The 4th parameter should be big enough to store the formatted date and time. We recommend 128 characters, as shown in the following figure:
The following table describes the input and output parameters for this function:
| Parameter | Type | I/O | Memory Argument | Expected Values |
|---|---|---|---|---|
| return code | void | output | none | none |
| 1 | char * | input | memory contains the date formatted as YYYY-MM-DD | date in format: YYYY-MM-DD |
| 2 | char * | input | memory contains the time formatted as HH:MM | time in format: HH:MM |
| 3 | char * | input | memory contains the format template, see table below | eg. %A %d %B %Y at %H %M |
| 4 | char * | output | memory contains formatted date and time | formatted date and time, or error description |
The following table describes the codes which can be used by a format template. For C programmers: these are identical to the strftime format codes.
| Code | Description |
|---|---|
| %a | Abbreviated weekday name |
| %A | Full weekday name |
| %b | Abbreviated month name |
| %B | Full month name |
| %c | Date and time representation appropriate for locale |
| %d | Day of month as decimal number (01 31) |
| %H | Hour in 24-hour format (00 23) |
| %I | Hour in 12-hour format (01 12) |
| %j | Day of year as decimal number (001 366) |
| %m | Month as decimal number (01 12) |
| %M | Minute as decimal number (00 59) |
| %p | Current locale's A.M./P.M. indicator for 12-hour clock |
| %S | Second as decimal number (00 59) |
| %U | Week of year as decimal number, with Sunday as first day of week (00 51) |
| %w | Weekday as decimal number (0 6; Sunday is 0) |
| %W | Week of year as decimal number, with Monday as first day of week (00 51) |
| %x | Date representation for current locale |
| %X | Time representation for current locale |
| %y | Year without century, as decimal number (00 99) |
| %Y | Year with century, as decimal number |
| %z, %Z | Time-zone name or abbreviation; no characters if time zone is unknown |
| %% | Percent sign |