Navigation

Operators and Keywords

Function List:

C++ API

: [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.

See also: strftime, localtime, gmtime, mktime, time, now, date, clock, datenum, datestr, datevec, calendar, weekday.

Package: octave