Is there a way to set system time from my app running on a Raspberry Pi 2 in Windows 10 IoT Core Insider Preview?
This doesn\'t work for lack of kernel32.dll
<
refer to Microsoft API Reference Docs and in the Windows.System namespace you can sets the system date and time with SetSystemDateTime method.
but you must know it`s available in
you can use DateTimeSettings static class
public static class DateTimeSettings
then call SetSystemDateTime static method and send your object of DateTimeOffset type for setting date and time on Windows Iot.
public static void SetSystemDateTime(DateTimeOffset utcDateTime)
https://docs.microsoft.com/en-us/uwp/api/windows.system.datetimesettings