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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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);
}