polars.datatypes.Datetime

class polars.datatypes.Datetime(*args, **kwargs)

Calendar date and time type

Methods

string_repr

__init__(time_unit: str = 'us', time_zone: Optional[str] = None)

Calendar date and time type

Parameters
time_unit

Any of {‘ns’, ‘us’, ‘ms’}

time_zone

Timezone string as defined in pytz

Methods

__init__([time_unit, time_zone])

Calendar date and time type

string_repr()