RimTools. Expose date format string

This commit is contained in:
Bjørn Erik Jensen 2017-10-03 11:39:07 +02:00
parent 282d8ef080
commit 947d31bfcc
2 changed files with 11 additions and 1 deletions

View File

@ -290,7 +290,7 @@ QString RimTools::createTimeFormatStringFromDates(const std::vector<QDateTime>&
}
}
QString formatString = "dd.MMM yyyy";
QString formatString = dateFormatString();
if (hasHoursAndMinutesInTimesteps)
{
formatString += " - hh:mm";
@ -306,3 +306,11 @@ QString RimTools::createTimeFormatStringFromDates(const std::vector<QDateTime>&
return formatString;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
QString RimTools::dateFormatString()
{
return "dd.MMM yyyy";
}

View File

@ -45,4 +45,6 @@ public:
static void caseOptionItems(QList<caf::PdmOptionItemInfo>* options);
static QString createTimeFormatStringFromDates(const std::vector<QDateTime>& dates);
static QString dateFormatString();
};