MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / getDateTime

Function getDateTime

launcher/minecraft/auth/Parsers.cpp:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8namespace Parsers {
9
10bool getDateTime(QJsonValue value, QDateTime & out) {
11 if(!value.isString()) {
12 return false;
13 }
14 out = QDateTime::fromString(value.toString(), Qt::ISODate);
15 return out.isValid();
16}
17
18bool getString(QJsonValue value, QString & out) {
19 if(!value.isString()) {

Callers 1

parseXTokenResponseFunction · 0.85

Calls 2

toStringMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected