polars.Datetime#

class polars.Datetime(*args: Any, **kwargs: Any)[source]#

Calendar date and time type.

__init__(time_unit: TimeUnit | None = 'us', time_zone: str | None = None)[source]#

Calendar date and time type.

Parameters:
time_unit{‘us’, ‘ns’, ‘ms’}

Time unit.

time_zone

Timezone string as defined in zoneinfo (run import zoneinfo; zoneinfo.available_timezones() for a full list).

Methods

__init__([time_unit, time_zone])

Calendar date and time type.

string_repr()

Attributes

tu

tz