polars.internals.expr.ExprDateTimeNameSpace.hour

ExprDateTimeNameSpace.hour() polars.internals.expr.Expr

Extract hour from underlying DateTime representation. Can be performed on Datetime.

Returns the hour number from 0 to 23.

Returns
Hour as UInt32