|
@ -377,9 +377,6 @@ now = datetime.datetime.now() |
|
|
now.month # 3 |
|
|
now.month # 3 |
|
|
now.strftime('%Y%m%d') # '20180315' |
|
|
now.strftime('%Y%m%d') # '20180315' |
|
|
now.strftime('%Y%m%d%H%M%S') # '20180315002834' |
|
|
now.strftime('%Y%m%d%H%M%S') # '20180315002834' |
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
```python |
|
|
|
|
|
<datetime> = datetime.strptime('2015-05-12 00:39', '%Y-%m-%d %H:%M') |
|
|
<datetime> = datetime.strptime('2015-05-12 00:39', '%Y-%m-%d %H:%M') |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|