MCPcopy Index your code
hub / github.com/nodejs/node-addon-api / CreateDateFromTimePoint

Function CreateDateFromTimePoint

test/date.cc:14–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14Value CreateDateFromTimePoint(const CallbackInfo& info) {
15 auto input = std::chrono::system_clock::time_point{};
16 return Date::New(info.Env(), input);
17}
18
19Value IsDate(const CallbackInfo& info) {
20 Date input = info[0].As<Date>();

Callers 1

testFunction · 0.85

Calls 1

EnvMethod · 0.80

Tested by 1

testFunction · 0.68