format_datetime#

format_datetime(value: Union[int, float, datetime]) str[source]#

Format datetime object or timestamp value.

Parameters
valueUnion[datetime, int, float]

datetime (timestamp) to format

Returns
——-
str

string representation of the provided value

Raises
——
ValueError

if unexpected value type was passed to the function