From d37d5b6708efcf19877dd4cf12e2c065c2a5f5e9 Mon Sep 17 00:00:00 2001 From: Michael Uleysky Date: Tue, 27 Jun 2023 12:40:35 +1000 Subject: [PATCH] Support minutes in Refdate() function --- src/ncfuncs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ncfuncs.cpp b/src/ncfuncs.cpp index 0fd5721..054ce3f 100644 --- a/src/ncfuncs.cpp +++ b/src/ncfuncs.cpp @@ -91,6 +91,7 @@ std::tuple NCFuncs::Refdate(const MString& refdate) auto ci = words.begin(); if(ci != words.end()) { + if(*ci == "minutes") step = 60; if(*ci == "hours") step = 3600; if(*ci == "days") step = 3600 * 24; ci++;