随笔- 807  文章- 150  评论- 23  阅读- 151万 

随笔分类 -  Python 日期操作

Python中处理日期时间库的使用方法(转载)
摘要:转载链接:https://www.cnblogs.com/sunshine-blog/p/8477893.html 《本文来自公众号“大邓带你玩python”,转载》 用百分之20时间,学会解决百分之80的问题。 常用的库有time、datetime。其中datetime库是对time库的封装,所以 阅读全文
posted @ 2020-01-02 15:20 xibuhaohao 阅读(556) 评论(0) 推荐(0) 编辑
python 日期、时间、字符串相互转换(转载)
摘要:原文链接:https://www.cnblogs.com/huhu-xiaomaomi/p/10338472.html 在python中,日期类型date和日期时间类型dateTime是不能比较的。 (1)如果要比较,可以将dateTime转换为date,date不能直接转换为dateTime im 阅读全文
posted @ 2019-12-20 08:38 xibuhaohao 阅读(2785) 评论(0) 推荐(0) 编辑
python 当前时间多加一天、一小时、一分钟(转载)
摘要:首先看下,datetime的使用 import datetime >>> print datetime.datetime.now() 2017-07-15 15:01:24.619000 格式化时间 >>> print datetime.datetime.now().strftime("%Y-%m- 阅读全文
posted @ 2019-12-19 19:53 xibuhaohao 阅读(1152) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示