MCPcopy Create free account
hub / github.com/IntegralPilot/wasm_os / time

Function time

stdlib/cpp/ctime.hpp:23–29  ·  view source on GitHub ↗

Returns the current calendar time Assume that the machine booted at the Unix epoch

Source from the content-addressed store, hash-verified

21// Returns the current calendar time
22// Assume that the machine booted at the Unix epoch
23time_t time(time_t* t) {
24 time_t current_time = static_cast<time_t>(timesinceboot());
25 if (t != nullptr) {
26 *t = current_time;
27 }
28 return current_time;
29}
30
31} // namespace std
32

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected