12345678910111213141516171819 |
- # -*- coding: utf-8 -*-
- # @Time : 2022/12/1 14:14
- # @Author : XuJiakai
- # @File : datetime_utils
- # @Software: PyCharm
- import time
- import datetime
- def get_ds():
- return time.strftime("%Y%m%d")
- def get_now():
- return datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
- if __name__ == '__main__':
- pass
|