From b54839b8976b5c1455c838828f2bc92cdeb178eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Wed, 2 Mar 2016 03:03:44 +0100 Subject: NOISSUE eliminate timestamp strings --- logic/minecraft/ParseUtils.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'logic/minecraft/ParseUtils.h') diff --git a/logic/minecraft/ParseUtils.h b/logic/minecraft/ParseUtils.h index bd2f6ffb..2b367a10 100644 --- a/logic/minecraft/ParseUtils.h +++ b/logic/minecraft/ParseUtils.h @@ -2,13 +2,10 @@ #include #include -/** - * parse the S3 timestamp in 'raw' and fill the forwarded variables. - * return true/false for success/failure - */ -bool parse_timestamp (const QString &raw, QString &save_here, QDateTime &parse_here); +#include "multimc_logic_export.h" -/** - * take the timestamp used by S3 and turn it into QDateTime - */ -QDateTime timeFromS3Time(QString str); +/// 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); -- cgit v1.2.3