原文:sql中把时间转换成xx年xx月xx日

年 月 日 ...

2018-07-30 15:53 0 3067 推荐指数:

查看详情

python将时间格式化为(xxxxxx

import datetime str1 = datetime.datetime.now().strftime("%Y-%m-%d") 如上的xx-xx-xx格式是可以直接格式化的。但是对于 xxxxxx的格式化要借助format函数 str2 = datetime.datetime.now ...

Thu Jul 25 20:10:00 CST 2019 0 597
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM