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

Method endDate

src/model/UtilityBill.cpp:883–886  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

881 }
882
883 Date BillingPeriod::endDate() const {
884 Date result = this->startDate() + Time(this->numberOfDays() - 1);
885 return result;
886 }
887
888 unsigned BillingPeriod::numberOfDays() const {
889 boost::optional<unsigned> numberOfDays = getUnsigned(OS_UtilityBillExtensibleFields::NumberofDaysinBillingPeriod);

Callers 11

setStartDateMethod · 0.95
withinRunPeriodMethod · 0.95
overlapsRunPeriodMethod · 0.95
modelPeakDemandMethod · 0.95
test_fileMethod · 0.45
addBillingPeriodMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 3

startDateMethod · 0.95
numberOfDaysMethod · 0.95
TimeClass · 0.70

Tested by 5

test_fileMethod · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36