MCPcopy Create free account
hub / github.com/MultiMC/Launcher / getDateTime

Function getDateTime

launcher/minecraft/auth/Parsers.cpp:9–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

parseXTokenResponseFunction · 0.85

Calls 2

toStringMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected