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

According to this> 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?

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