Browse Source

Small titles

pull/10/head
Jure Šorn 6 years ago
parent
commit
ad6ed9f618
1 changed files with 3 additions and 3 deletions
  1. 6
      README.md

6
README.md

@ -426,9 +426,9 @@ Datetime
```python ```python
from datetime import datetime, strptime from datetime import datetime, strptime
now = datetime.now() now = 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'
<datetime> = strptime('2015-05-12 00:39', '%Y-%m-%d %H:%M') <datetime> = strptime('2015-05-12 00:39', '%Y-%m-%d %H:%M')
``` ```

|||||||
100:0
Loading…
Cancel
Save