First time here? Check out the Help page!
1 | initial version |
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)