Update wrt-plugins-common_0.3.53
[framework/web/wrt-plugins-common.git] / src / Commons / TimeUtils.h
similarity index 69%
rename from src/modules/tizen/Filesystem/System.cpp
rename to src/Commons/TimeUtils.h
index be68d97..27e4038 100644 (file)
  *    See the License for the specific language governing permissions and
  *    limitations under the License.
  */
-#include "System.h"
-#include <stdlib.h>
-#include <string.h>
-#include "Command.h"
+/**
+ * @file   TimeUtils.h
+ * @author Tae-Jeong Lee (taejeong.lee@samsung.com)
+ */
+
+#ifndef WRTDEVICEAPIS_COMMONS_TIMEUTILS_H_
+#define WRTDEVICEAPIS_COMMONS_TIMEUTILS_H_
+
+#include <time.h>
 
 namespace WrtDeviceApis {
-namespace Filesystem {
+namespace Commons {
+namespace Time {
 
-void System::run(Command* cmd)
-{
-    cmd->execute();
-}
+struct tm* localtime_r(long long int* timep, struct tm* result);
 
-} // Filesystem
-} // WrtDeviceApis
+}
+}
+}
+#endif