Home Assistant Unofficial Reference 2024.12.1
time.py File Reference

Go to the source code of this file.

Namespaces

 homeassistant.components.recorder.models.time
 

Functions

float|None homeassistant.components.recorder.models.time.datetime_to_timestamp_or_none (datetime|None dt)
 
datetime homeassistant.components.recorder.models.time.process_timestamp (datetime ts)
 
datetime|None homeassistant.components.recorder.models.time.process_timestamp (datetime|None ts)
 
None homeassistant.components.recorder.models.time.process_timestamp (None ts)
 
str homeassistant.components.recorder.models.time.process_timestamp_to_utc_isoformat (datetime ts)
 
str|None homeassistant.components.recorder.models.time.process_timestamp_to_utc_isoformat (datetime|None ts)
 
None homeassistant.components.recorder.models.time.process_timestamp_to_utc_isoformat (None ts)
 
datetime|None homeassistant.components.recorder.models.time.timestamp_to_datetime_or_none (float|None ts)
 

Variables

 homeassistant.components.recorder.models.time._LOGGER = logging.getLogger(__name__)
 
string homeassistant.components.recorder.models.time.DB_TIMEZONE = "+00:00"
 
string homeassistant.components.recorder.models.time.EMPTY_JSON_OBJECT = "{}"