sinergym.utils.common.get_current_time_info

sinergym.utils.common.get_current_time_info(epm: opyplus.Epm, sec_elapsed: float) List[int]

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

Returns:

A List composed by the current year, day, month and hour in the simulation.

Return type:

List[int]