|
|
@ -152,7 +152,7 @@ ValueHolder context(Script&, std::vector<ValueHolder>& args) |
|
|
|
ValueHolder unixts(Script&, std::vector<ValueHolder>& args) |
|
|
|
ValueHolder unixts(Script&, std::vector<ValueHolder>& args) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (args.empty()) |
|
|
|
if (args.empty()) |
|
|
|
throwInsufficientParameters("unixts", args.size(), 0); |
|
|
|
throwInsufficientParameters("unixts", args.size(), 1); |
|
|
|
|
|
|
|
|
|
|
|
qint64 ts = ValueExtract(args[0]).toInt(); |
|
|
|
qint64 ts = ValueExtract(args[0]).toInt(); |
|
|
|
auto datetime = QDateTime::fromSecsSinceEpoch(ts); |
|
|
|
auto datetime = QDateTime::fromSecsSinceEpoch(ts); |
|
|
|