可能重复: Python datetime到Unix时间戳
有没有办法将a转换datetime为int,表示自2012年1月以来的分钟数,以便int可以修改,写入数据库,比较等等?编辑:我运行此服务器的服务器使用Python 2.6.6
datetime
int
python int datetime python-2.6
datetime ×1
int ×1
python ×1
python-2.6 ×1