如何在phpmyadmin上比较当前时间和时间

时间:2017-05-18 09:47:22

标签: python-2.7 phpmyadmin

我发布了2张图片,其中包含代码和错误。我如何解决这个问题并比较当前时间和数据库上的时间?

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:0)

我发现适用于我的问题的是将我从行[4]获得的时间转换为str(),我发现: Python format timedelta to string

enter image description here