Custom formatting function for various data types.
This function formats datetime, timedelta, and floating-point numbers
into human-readable strings.Parameters:
Name
Type
Default
Description
x
tp.Any
--
The input value to format. Can be a datetime, timedelta, float, or any other type.
Returns:
Type
Description
str
A formatted string representation of the input value.