MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / modSetTime

Function modSetTime

xs/platforms/zephyr/xsHost.c:695–700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

693#include <zephyr/sys/clock.h>
694
695void modSetTime(uint32_t seconds)
696{
697 //@@ untested?
698 struct timespec ts = { .tv_sec = seconds };
699 sys_clock_settime(SYS_CLOCK_REALTIME, &ts);
700}
701
702void modSetTimeZone(int32_t timeZoneOffset)
703{

Callers 1

doRemoteCommandFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected