summaryrefslogtreecommitdiff
path: root/louloulibs/utils/time.hpp
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2016-12-21 21:25:09 +0100
committerJonas Smedegaard <dr@jones.dk>2016-12-21 21:25:09 +0100
commitf820d86aadb7a5473bcc0a0a3669732ab0182555 (patch)
treea6a673c444ea3df75fe0a5d53e905030c2f617ce /louloulibs/utils/time.hpp
parenteda4b75b1cff83336e87da90efca9fd6b4ced2c7 (diff)
parent9634cdaba2e5d2343fcbc1f07264d55609640273 (diff)
downloadbiboumi-f820d86aadb7a5473bcc0a0a3669732ab0182555.tar.gz
biboumi-f820d86aadb7a5473bcc0a0a3669732ab0182555.tar.bz2
biboumi-f820d86aadb7a5473bcc0a0a3669732ab0182555.tar.xz
biboumi-f820d86aadb7a5473bcc0a0a3669732ab0182555.zip
New upstream version 4.0upstream/4.0
Diffstat (limited to 'louloulibs/utils/time.hpp')
-rw-r--r--louloulibs/utils/time.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/louloulibs/utils/time.hpp b/louloulibs/utils/time.hpp
new file mode 100644
index 0000000..c71cd9c
--- /dev/null
+++ b/louloulibs/utils/time.hpp
@@ -0,0 +1,10 @@
+#pragma once
+
+#include <ctime>
+#include <string>
+
+namespace utils
+{
+std::string to_string(const std::time_t& timestamp);
+std::time_t parse_datetime(const std::string& stamp);
+} \ No newline at end of file