MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / exec

Method exec

source/src/scriptinterpreter.cpp:132–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130{
131 QiFunc_mintime() : QiFunc(0, 1) {}
132 QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter*) const override
133 {
134 if (args.empty())
135 {
136 time_t s = time(nullptr);
137 tm m;
138 localtime_s(&m, &s);
139 return QiVar::toString(m.tm_min) + std::string(":") + QiVar::toString(m.tm_sec);
140 }
141 time_t s = args[0].toInteger();
142 return QiVar::toString(s / 60) + std::string(":") + QiVar::toString(s % 60);
143 }
144};
145/*
146int hour

Callers

nothing calls this directly

Calls 1

toIntegerMethod · 0.80

Tested by

no test coverage detected