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

Method exec

source/src/scriptinterpreter.cpp:292–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290{
291 QiFunc_time_dm() : QiFunc(0, 1) {}
292 QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter*) const override
293 {
294 time_t s = args.empty() ? time(nullptr) : static_cast<time_t>(args[0].toInteger());
295 tm m;
296 localtime_s(&m, &s);
297 return m.tm_min;
298 }
299};
300/*
301int timestamp: sec

Callers

nothing calls this directly

Calls 1

toIntegerMethod · 0.80

Tested by

no test coverage detected