Main Site Documentation

4.3 - NTPTime - set system time


#1

The new 4.3 SDK is making me feel dumb.

What’s the secret sauce to set the system and RTC time using 4.3?
I am unable to port the 4.2 version of this method to 4.3.
https://www.ghielectronics.com/community/codeshare/entry/244


#2

On the STM’s i use this…



Not sure if it's the same on Premium....

#3

Great. Thanks Justin! :slight_smile:


#4

@ sandy - For setting our RTC, you want GHI.Processor.RealTimeClock.SetDateTime(newTime);


#5

Hi John,
Apologize up front for bringing up an old topic…
I do not see this function in .netmf 4.3:

“For setting our RTC, you want GHI.Processor.RealTimeClock.SetDateTime(newTime);”

Thanks and I am sure it is something I have overlooked. Any help is appreciated.

V/R,
Jordan


#6

Thanks…

Yep, I needed to add GHI.Hardware to my references.

Thanks for the quick response.

Jordan