informatica:linux:python
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
informatica:linux:python [2019/11/20 12:21] – jose | informatica:linux:python [2022/10/25 21:39] (current) – [Fecha (python 3)] jose | ||
---|---|---|---|
Line 24: | Line 24: | ||
</ | </ | ||
====== Fecha ====== | ====== Fecha ====== | ||
+ | Python 3 | ||
import datetime | import datetime | ||
f" | f" | ||
| | ||
' | ' | ||
- | | + | Python 2 |
+ | from datetime import datetime | ||
+ | fecha = datetime.now() | ||
+ | print(fecha.strftime(" | ||
informatica/linux/python.1574252477.txt.gz · Last modified: 2019/11/20 12:21 by jose