summaryrefslogtreecommitdiffstats
path: root/logic/minecraft/ParseUtils.h
blob: 73cf526a888043c277e593c30aacd226cf254c04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);