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

Method exec

source/src/scriptinterpreter.cpp:243–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241{
242 QiFunc_time_w() : QiFunc(0, 1) {}
243 QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter*) const override
244 {
245 time_t s = args.empty() ? time(nullptr) : static_cast<time_t>(args[0].toInteger());
246 tm m;
247 localtime_s(&m, &s);
248 if (m.tm_wday == 0) m.tm_wday = 7;
249 return m.tm_wday;
250 }
251};
252/*
253int timestamp: sec

Callers

nothing calls this directly

Calls 1

toIntegerMethod · 0.80

Tested by

no test coverage detected