|
|
@ -93,6 +93,7 @@ std::tuple<MDateTime, time_t, bool> NCFuncs::Refdate(const MString& refdate) |
|
|
|
auto ci = words.begin(); |
|
|
|
auto ci = words.begin(); |
|
|
|
if(ci != words.end()) |
|
|
|
if(ci != words.end()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if(*ci == "seconds") step = 1; |
|
|
|
if(*ci == "minutes") step = 60; |
|
|
|
if(*ci == "minutes") step = 60; |
|
|
|
if(*ci == "hours") step = 3600; |
|
|
|
if(*ci == "hours") step = 3600; |
|
|
|
if(*ci == "days") step = 3600 * 24; |
|
|
|
if(*ci == "days") step = 3600 * 24; |
|
|
|