Skip to content

Adapt to time points in opm-common's time interfaces - #7456

Draft
GitPaean wants to merge 1 commit into
OPM:masterfrom
GitPaean:chrono-time-conversions
Draft

GitPaean wants to merge 1 commit into
OPM:masterfrom
GitPaean:chrono-time-conversions

Conversation

@GitPaean

@GitPaean GitPaean commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

Schedule::getStartTime() and simTime(), Runspec::start_time() and the action interfaces take and return time_point instead of std::time_t. Callers that need seconds since the epoch - the simulator's start and end times, reservoir coupling and Boost.Date_Time - convert with TimeService::to_time_t().

The economic limit messages take the start time as a time point and format the date from TimeStampUTC rather than fmt::gmtime(), which throws on Windows for dates past year 3000.

OPM/opm-common#5342

Schedule::getStartTime() and simTime(), Runspec::start_time() and the
action interfaces take and return time_point instead of std::time_t.
Callers that need seconds since the epoch - the simulator's start and
end times, reservoir coupling and Boost.Date_Time - convert with
TimeService::to_time_t().

The economic limit messages take the start time as a time point and
format the date from TimeStampUTC rather than fmt::gmtime(), which
throws on Windows for dates past year 3000.
@GitPaean GitPaean added the manual:irrelevant This PR is a minor fix and should not appear in the manual label Sep 26, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

manual:irrelevant This PR is a minor fix and should not appear in the manual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant