Input Parameters | Significance |
char *str | date format string |
Output Parameters | Significance |
none | - |
Return Code | Significance |
0 | no error |
1 | wrong format specification |
The date format consists of the positions for the data content and the delimiters. The date format string must be the first block of the date string, while the time is the second block. Delimiters must not be numeric characters.
Format | Example |
Y/M/D H:M:S | 1994/05/17 12:20:31 |
D.M.Y H:M:S | 17.05.1994 12:20:31 |
D-A Y:H-M-S
|
17-MAY 1994:12-20-31 |