Browse Source

Support for second as time unit in NCFuncs::Refdate

master
Michael Uleysky 6 months ago
parent
commit
1e8d401737
  1. 1
      src/ncfuncs.cpp

1
src/ncfuncs.cpp

@ -93,6 +93,7 @@ std::tuple<MDateTime, time_t, bool> 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;

Loading…
Cancel
Save