Epoch in Berry map for time

Inserts input epoch value directly into the output map, for consistently having epoch in this data structure
This commit is contained in:
sfromis
2022-10-09 16:12:16 +02:00
committed by GitHub
parent 409c9888dd
commit 4a3a52cd3e
+1
View File
@@ -37,6 +37,7 @@ static int m_dump(bvm *vm)
time_insert(vm, "min", t->tm_min);
time_insert(vm, "sec", t->tm_sec);
time_insert(vm, "weekday", t->tm_wday);
time_insert(vm, "epoch", ts);
be_pop(vm, 1);
be_return(vm);
}