jztools.datetime#

Module Attributes

TZInfoRep

A string representation of a tzinfo (e.g., 'US/Eastern') or a tzinfo.

Functions

as_tzinfo(tz_in)

Converts a string to a tzinfo object (or returns the tzinfo object).

dt_from_str(in_dt, tz)

tz_offset(tza, tzb)

Returns the timezone offset at the current time as a timedelta of tza relative to tzb.

jztools.datetime.TZInfoRep#

A string representation of a tzinfo (e.g., 'US/Eastern') or a tzinfo.

alias of Union[str, tzinfo]

jztools.datetime.as_tzinfo(tz_in: str | tzinfo) tzinfo#

Converts a string to a tzinfo object (or returns the tzinfo object).

jztools.datetime.tz_offset(tza, tzb) timedelta#

Returns the timezone offset at the current time as a timedelta of tza relative to tzb.