From 1e8d401737b8f8a7bbc0fa020d694e77a8b1aa48 Mon Sep 17 00:00:00 2001 From: Michael Uleysky Date: Wed, 29 Nov 2023 15:44:11 +1000 Subject: [PATCH] Support for second as time unit in NCFuncs::Refdate --- src/ncfuncs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ncfuncs.cpp b/src/ncfuncs.cpp index 5ab0d3b..8d1b5a7 100644 --- a/src/ncfuncs.cpp +++ b/src/ncfuncs.cpp @@ -93,6 +93,7 @@ std::tuple NCFuncs::Refdate(const MString& refdate) auto ci = words.begin(); if(ci != words.end()) { + if(*ci == "seconds") step = 1; if(*ci == "minutes") step = 60; if(*ci == "hours") step = 3600; if(*ci == "days") step = 3600 * 24;