aboutsummaryrefslogtreecommitdiffstats
path: root/src/libdash/source/helpers/Time.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libdash/source/helpers/Time.h')
-rw-r--r--src/libdash/source/helpers/Time.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/libdash/source/helpers/Time.h b/src/libdash/source/helpers/Time.h
new file mode 100644
index 00000000..e7de0cd9
--- /dev/null
+++ b/src/libdash/source/helpers/Time.h
@@ -0,0 +1,35 @@
+/*
+ * Time.h
+ *****************************************************************************
+ * Copyright (C) 2013, bitmovin Softwareentwicklung OG, All Rights Reserved
+ *
+ * Email: libdash-dev@vicky.bitmovin.net
+ *
+ * This source code and its use and distribution, is subject to the terms
+ * and conditions of the applicable license agreement.
+ *****************************************************************************/
+
+#ifndef DASH_HELPERS_TIME_H_
+#define DASH_HELPERS_TIME_H_
+
+#include <time.h>
+#include "config.h"
+
+namespace dash
+{
+ namespace helpers
+ {
+ class Time
+ {
+ public:
+ static uint32_t GetCurrentUTCTimeInSec ();
+ static std::string GetCurrentUTCTimeStr ();
+
+ private:
+ static struct tm* GetCurrentUTCTime ();
+
+ };
+ }
+}
+
+#endif /* DASH_HELPERS_TIME_H_ */