ecere/sys/Time: add missing SecSince1970::OnGetDataFromString.
authorRejean Loyer <redj@ecere.com>
Mon, 2 Jun 2014 07:47:13 +0000 (03:47 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 19 Jun 2014 05:27:33 +0000 (01:27 -0400)
ecere/src/sys/Time.ec

index fc2abf0..344e068 100644 (file)
@@ -296,6 +296,17 @@ public class SecSince1970 : int64
       return ((DateTime)this).OnGetString(tempString, fieldData, needClass);
    }
 
+   bool OnGetDataFromString(const char * string)
+   {
+      DateTime dt { };
+      if(dt.OnGetDataFromString(string))
+      {
+         this = dt;
+         return true;
+      }
+      return false;
+   }
+
    // Is this required?
    int OnCompare(SecSince1970 data2)
    {