Browse Source

Date

pull/3/head
Jure Šorn 6 years ago
parent
commit
cb8cdfc641
1 changed files with 5 additions and 8 deletions
  1. 13
      README.md

13
README.md

@ -315,14 +315,11 @@ random.shuffle(<list>)
Datetime Datetime
-------- --------
```python ```python
>>> import datetime import datetime
>>> now = datetime.datetime.now() now = datetime.datetime.now()
>>> now.month now.month # 3
3 now.strftime('%Y%m%d') # '20180315'
>>> now.strftime('%Y%m%d') now.strftime('%Y%m%d%H%M%S') # '20180315002834'
'20180315'
>>> now.strftime('%Y%m%d%H%M%S')
'20180315002834'
``` ```
Arguments Arguments

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