Bundled with LeSysBot
date-time
Current date, time, and timezone information.
Install#
Nothing to do — this package ships inside LeSysBot and is available as soon as the installer finishes.
Tools#
This package exposes 1 tool.
get_datetime(timezone=local)#
Return the current date and time, either in the machine's local timezone or in any IANA timezone you name.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
timezone | str | local | IANA timezone name such as Asia/Ho_Chi_Minh or America/New_York. Omit for the machine's local time. |
Notes#
- Standard library only — timezone data comes from Python's zoneinfo.
Source#
Every package is a folder holding a README.md and a tool.py. Read this one on GitHub: lesysbot/lesysbot/tools/date-time.
To write your own, see Writing tools.