preheat_open.api.session.datetime_to_api_string
- preheat_open.api.session.datetime_to_api_string(t)
Converts a python datetime to a string ready for use in the API I/O
- Parameters:
t (
datetime) – datetime to convert to string- Return type:
str- Returns:
a string with a format compatible with the API