pocketpy/docs/modules/datetime.md
2024-08-17 19:05:56 +08:00

16 lines
255 B
Markdown

---
icon: package
label: datetime
---
### `datetime.now()`
Returns the current date and time as a `datetime` object.
### `date.today()`
Returns the current local date as a `date` object.
#### Source code
:::code source="../../python/datetime.py" :::