How set date & time on ARM ?

How can I set the time? by using localtime() function it gives me 1 january 1970 00:00:00.

Any idea to set a new date and time?

Not sure if this answers your question. But here are 3 potential nuggets:

  • See ‘natime’ example located by default here on your development system:
    checkout the ‘readme’

  • the ARM7 does not have a real-time clock. So it will not remember time between power cycles.

  • see API document -> Internetworking -> SNTP. (I’m assuming you have netos 7.4). Functions there have some good information