Everything seems correct but I get "ValueError: time data" when parsing a timestamp
<p>It seems that the format is correct but I still get this error. What could be the problem here?</p>

<pre><code>ValueError: time data '2016-09-16 11:36:28' does not match format '%y-%m-%d %H:%M:%S'
</code></pre>

<p>You need to use <code>%Y</code> for 4-digit years:</p>

<pre><code>In [10]:
d='2016-09-16 11:36:28'
dt.datetime.strptime(d, '%Y-%m-%d %H:%M:%S')

Out[10]:
datetime.datetime(2016, 9, 16, 11, 36, 28)
</code></pre>

<p>see the docs: <a href="https://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior" rel="nofollow">https://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior</a></p>

python timestamp