Add three argument (year, month, day) constructor TimeStampUTC
This commit is contained in:
@@ -32,10 +32,10 @@
|
||||
|
||||
|
||||
BOOST_AUTO_TEST_CASE(CreateEmpty) {
|
||||
std::vector<std::time_t> tp = { Opm::asTimeT(Opm::TimeStampUTC({2010,1,1})) };
|
||||
std::vector<std::time_t> tp = { Opm::asTimeT(Opm::TimeStampUTC(2010,1,1)) };
|
||||
|
||||
for (int i = 0; i < 11; i++)
|
||||
tp.push_back( Opm::asTimeT(Opm::TimeStampUTC({2010,1,i+2})));
|
||||
tp.push_back( Opm::asTimeT(Opm::TimeStampUTC(2010,1,i+2)));
|
||||
|
||||
Opm::TimeMap timeMap(tp);
|
||||
Opm::Events events( timeMap );
|
||||
|
||||
Reference in New Issue
Block a user