LeSysBot docs

Package version

1.0.0

Requires on PATH

nothing

Python dependencies

none

Install#

Nothing to do — this package ships inside LeSysBot and is available as soon as the installer finishes.

To copy it somewhere else, or pin it into another machine's tools dir:

shell
lesysbot install lesysbot/lesysbot/tools/date-time

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

ParameterTypeDefaultDescription
timezonestrlocalIANA 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.