summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/ParseUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'api/logic/minecraft/ParseUtils.h')
-rw-r--r--api/logic/minecraft/ParseUtils.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/api/logic/minecraft/ParseUtils.h b/api/logic/minecraft/ParseUtils.h
new file mode 100644
index 00000000..2b367a10
--- /dev/null
+++ b/api/logic/minecraft/ParseUtils.h
@@ -0,0 +1,11 @@
+#pragma once
+#include <QString>
+#include <QDateTime>
+
+#include "multimc_logic_export.h"
+
+/// take the timestamp used by S3 and turn it into QDateTime
+MULTIMC_LOGIC_EXPORT QDateTime timeFromS3Time(QString str);
+
+/// take a timestamp and convert it into an S3 timestamp
+MULTIMC_LOGIC_EXPORT QString timeToS3Time(QDateTime);