# How do I access Real-Time clock on the Xbee3 NB-IoT module ?

**URL:** <https://forums.digi.com/t/how-do-i-access-real-time-clock-on-the-xbee3-nb-iot-module/20700>\
**Category:** XBee - Cellular\
**Tags:** timer, real-time, python, xbee3\
**Created:** [August 13, 2019, 11:08am UTC](https://forums.digi.com/t/how-do-i-access-real-time-clock-on-the-xbee3-nb-iot-module/20700 "2019-08-13T11:08:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajib](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rajib](https://forums.digi.com/u/rajib)\
**Post date:** [August 13, 2019, 11:08am UTC](https://forums.digi.com/t/how-do-i-access-real-time-clock-on-the-xbee3-nb-iot-module/20700/1 "2019-08-13T11:08:09Z")

</div>

According to this\> [https://www.digi.com/resources/documentation/digidocs/90002219/default.htm#reference/r\_features.htm%3FTocPath%3D\_\_\_\_\_2](https://www.digi.com/resources/documentation/digidocs/90002219/default.htm#reference/r_features.htm%3FTocPath%3D _____ 2)

Xbee3 cellular modules have a RTC. But I could not find any way to access it.

time.time() needs to connect to the network. But I need to start a timer before the module gets connected to the network. How do I do that?

---

<div class="post-metadata">

**Author:** ![cevans](https://avatars.discourse-cdn.com/v4/letter/c/3be4f8/32.png) [@cevans](https://forums.digi.com/u/cevans)\
**Post date:** [August 14, 2019, 11:02am UTC](https://forums.digi.com/t/how-do-i-access-real-time-clock-on-the-xbee3-nb-iot-module/20700/2 "2019-08-14T11:02:02Z")

</div>

Hello!  
You can use the time.ticks\_ms() or time.ticks\_us() to get the XBee’s time since boot in milliseconds or microseconds respectively.  
Other supported functions in the time module are described in the XBee MicroPython programming guide here:

[https://www.digi.com/resources/documentation/digidocs/90002219/default.htm#reference/r\_delay\_timing.htm%3FTocPath%3DTime%2520module%2520example%253A%25C2%25A0get%2520the%2520current%2520time|\_\_\_\_\_3](https://www.digi.com/resources/documentation/digidocs/90002219/default.htm#reference/r_delay_timing.htm%3FTocPath%3DTime%2520module%2520example%253A%25C2%25A0get%2520the%2520current%2520time%7C _____ 3)
