Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

Take a look at the Time section on this page of the SDK documentation. For dates and time, OpenStudio has the following:

Now let's say that you want to create a date. The "tricky" part is that for the month it requires an OpenStudio::MonthOfYear:

day = 1
month = 1
year = 2010
date = OpenStudio::Date.new(OpenStudio::MonthOfYear.new(month), day, year)