MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / makeDate

Method makeDate

src/model/YearDescription.cpp:231–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229 }
230
231 openstudio::Date YearDescription_Impl::makeDate(openstudio::MonthOfYear monthOfYear, unsigned dayOfMonth) {
232 boost::optional<int> year = this->calendarYear();
233 if (!year) {
234 year = this->assumedYear();
235 }
236
237 return {monthOfYear, dayOfMonth, *year};
238 }
239
240 openstudio::Date YearDescription_Impl::makeDate(unsigned monthOfYear, unsigned dayOfMonth) {
241 return makeDate(openstudio::MonthOfYear(monthOfYear), dayOfMonth);

Callers

nothing calls this directly

Calls 3

calendarYearMethod · 0.95
assumedYearMethod · 0.95
MonthOfYearClass · 0.70

Tested by

no test coverage detected