summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/ParseUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'logic/minecraft/ParseUtils.h')
-rw-r--r--logic/minecraft/ParseUtils.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/logic/minecraft/ParseUtils.h b/logic/minecraft/ParseUtils.h
new file mode 100644
index 00000000..73cf526a
--- /dev/null
+++ b/logic/minecraft/ParseUtils.h
@@ -0,0 +1,14 @@
+#pragma once
+#include <QString>
+#include <QDateTime>
+
+/**
+ * parse the S3 timestamp in 'raw' and fill the forwarded variables.
+ * return true/false for success/failure
+ */
+void parse_timestamp (const QString &raw, QString &save_here, QDateTime &parse_here);
+
+/**
+ * take the timestamp used by S3 and turn it into QDateTime
+ */
+QDateTime timeFromS3Time(QString str);