sinergym.utils.common.get_current_time_info

sinergym.utils.common.get_current_time_info(epm, sec_elapsed, sim_year=1991)

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

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

  • sec_elapsed (int) – 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.

Return type:

(int, int, int)