I've tried to convert datetime string into datetime of an SArray (uses C++ booster library), but it does not seem to understand the %p
format specifier. http://www.boost.org/doc/libs/1_43_0/doc/html/date_time/date_time_io.html
This documentation says specifiers marked with !
do not currently work for input
.
Does that mean that you cannot parse anything with pm
or PM
?
I was able to get the string-to-datetime conversion to work by making two small changes:
Here's what works for me:
sf = gl.SFrame({'date': ['2015-11-06 02:12:42 pm',
'2015-11-05 03:43:11 pm']})
sf['date2'] = sf['date'].str_to_datetime('%Y-%m-%d %I:%M:%S %p')