Function Reference
— Loadable Function: [tm_struct, nchars] = strptime (str, fmt)

Convert the string str to the time structure tm_struct under the control of the format string fmt.

If fmt fails to match, nchars is 0; otherwise it is set to the position of last matched character plus 1. Always check for this unless you're absolutely sure the date string will be parsed correctly.