Skip to content

Commit 42fe6ff

Browse files
committed
Datetime fix
1 parent bca5b0b commit 42fe6ff

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -512,17 +512,15 @@ import pytz
512512
<float> = <DT>.timestamp() # Seconds since Epoch in local time or tz if set.
513513
```
514514

515-
### Format
516-
#### ISO:
515+
### ISO
517516
* **Date: `'YYYY-MM-DD'`.**
518517
* **Time: `'HH:MM:SS.ffffff[+<offset>]'`.**
519518
* **Datetime: `'YYYY-MM-DDTHH:MM:SS.ffffff[+<offset>]'`.**
520519

521-
#### Strptime, strftime:
520+
### Format
522521
```python
523522
>>> dt = datetime.strptime('2015-05-14 23:39:00', '%Y-%m-%d %H:%M:%S')
524523
```
525-
526524
* **`'y'` - Year, 2 digits**
527525
* **`'b'` - Month, abbreviated name**
528526
* **`'B'` - Month, full name**

0 commit comments

Comments
 (0)