fastlife.adapters.xcomponent.functions.functions

Module Contents

Functions

isoformat

Cast a date or a datetime to isoformat representation.

to_string

convert a value to a string, the None value is displayed as an empty string.

API

fastlife.adapters.xcomponent.functions.functions.isoformat(value: str | datetime.date | datetime.datetime | None) str | None

Cast a date or a datetime to isoformat representation.

In case its not a date or a datetime, the value is preserved.

fastlife.adapters.xcomponent.functions.functions.to_string(value: Any) str

convert a value to a string, the None value is displayed as an empty string.