sinergym.utils.common.get_current_time_info

sinergym.utils.common.get_current_time_info(epm: opyplus.epm.epm.Epm, sec_elapsed: float, sim_year: int = 1991) Tuple[int, int, int, float]

Returns the current day, month and hour given the seconds elapsed since the simulation started.

Parameters
  • epm (opyplus.Epm) – EnergyPlus model object.

  • sec_elapsed (float) – Seconds elapsed since the start of the simulation

  • sim_year (int, optional) – Year of the simulation. Defaults to 1991.

Returns

A tuple composed by the current day, month and hour in the simulation and time elapsed.

Return type

Tuple[int, int, int, float]