Skip to content

Commit 8000f97

Browse files
authored
Merge pull request yegappan#5 from mgedmin/patch-2
Correct Python date and time example
2 parents 89d9a80 + 5e5b51d commit 8000f97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

VimScriptForPythonDevelopers.MD

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2174,9 +2174,9 @@ atan2| `f = math.atan2(0.4, 0.8)` | `let f = atan2(0.4, 0.8)`
21742174

21752175
**Python:**
21762176
```python
2177-
from datetime import date
2178-
d = date.today()
2179-
print d.strftime("%c")
2177+
from datetime import datetime
2178+
d = datetime.now()
2179+
print(d.strftime("%c"))
21802180
```
21812181

21822182
**VimScript:**

0 commit comments

Comments
 (0)