| 274 | { |
| 275 | QiFunc_time_dh() : QiFunc(0, 1) {} |
| 276 | QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter*) const override |
| 277 | { |
| 278 | time_t s = args.empty() ? time(nullptr) : static_cast<time_t>(args[0].toInteger()); |
| 279 | tm m; |
| 280 | localtime_s(&m, &s); |
| 281 | return m.tm_hour; |
| 282 | } |
| 283 | }; |
| 284 | /* |
| 285 | int timestamp: sec |