mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3060 Resampled plot export. Implement dialog. Resample plot data according to spec from Equinor
This commit is contained in:
@@ -296,3 +296,21 @@ QDateTime RiaQDateTimeTools::truncateTime(const QDateTime& dt, DateTimePeriod pe
|
||||
CVF_ASSERT(false);
|
||||
return createUtcDateTime();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<DateTimePeriodInfo> RiaQDateTimeTools::dateTimePeriodInfoList()
|
||||
{
|
||||
return std::vector<DateTimePeriodInfo>(
|
||||
{
|
||||
{ DateTimePeriod::NONE, "None" },
|
||||
{ DateTimePeriod::DECADE, "Decade" },
|
||||
{ DateTimePeriod::YEAR, "Year" },
|
||||
{ DateTimePeriod::HALFYEAR, "Half Year" },
|
||||
{ DateTimePeriod::QUARTER, "Quarter" },
|
||||
{ DateTimePeriod::MONTH, "Month" },
|
||||
{ DateTimePeriod::WEEK, "Week" },
|
||||
{ DateTimePeriod::DAY, "Day" },
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user