MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / getDateTime

Function getDateTime

launcher/minecraft/auth/Parsers.cpp:11–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

parseXTokenResponseFunction · 0.85

Calls 2

toStringMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected