# How set  date & time on ARM ?

**URL:** <https://forums.digi.com/t/how-set-date-time-on-arm/5455>\
**Category:** NET+OS\
**Created:** [August 20, 2008, 9:36am UTC](https://forums.digi.com/t/how-set-date-time-on-arm/5455 "2008-08-20T09:36:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![darapuce](https://avatars.discourse-cdn.com/v4/letter/d/3ec8ea/32.png) [@darapuce](https://forums.digi.com/u/darapuce)\
**Post date:** [August 20, 2008, 9:36am UTC](https://forums.digi.com/t/how-set-date-time-on-arm/5455/1 "2008-08-20T09:36:36Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![kjensen8](https://avatars.discourse-cdn.com/v4/letter/k/8e8cbc/32.png) [@kjensen8](https://forums.digi.com/u/kjensen8)\
**Post date:** [December 10, 2008, 10:40pm UTC](https://forums.digi.com/t/how-set-date-time-on-arm/5455/2 "2008-12-10T22:40:32Z")

</div>

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

- See ‘natime’ example located by default here on your development system:  
C:  
etos74\src\examples  
atime  
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
