polars.datetime

polars.datetime(year: Union[polars.internals.expr.Expr, str], month: Union[polars.internals.expr.Expr, str], day: Union[polars.internals.expr.Expr, str], hour: Optional[Union[polars.internals.expr.Expr, str]] = None, minute: Optional[Union[polars.internals.expr.Expr, str]] = None, second: Optional[Union[polars.internals.expr.Expr, str]] = None, millisecond: Optional[Union[polars.internals.expr.Expr, str]] = None) polars.internals.expr.Expr

Create polars Datetime from distinct time components.

Parameters
year

column or literal.

month

column or literal, ranging from 1-12.

day

column or literal, ranging from 1-31.

hour

column or literal, ranging from 1-24.

minute

column or literal, ranging from 1-60.

second

column or literal, ranging from 1-60.

millisecond

column or literal, ranging from 1-1000.

Returns
Expr of type pl.Datetime