after the reqcontractdetails, you'll get the info you search in the callback contractDetails(int reqId, ContractDetails contractDetails)
in the object contractDetails you'll find a few fields:
m_tradingHours
m_timeZoneId
m_liquidHours
the format is:
/*...