I am developing an inventory control system that will hopefully be deployed within several of our plants. I am going to be using a Linux SBC (Pi, Beaglebone......etc.) platform. I want my user interface to be non-Linux so that the end user does not need to know the Linux OS or how to navigate using the command line. My app will auto-launch at boot and provide the end user with all the necessary front end with a Python/Tkinter HMI. My prototype is based on the Raspberry Pi B. Because many of the installations may not have a network available I need a way to set the system time thru the user interface via python. I am using a Dallas 3231 RTC I2C chip on the GPIO pins with the i2C interface. Everything is worked out except there does not seem to be a simple way for Python to set the system time, write it to the RTC, and ignore the NPT sync if a network is available. This may be super simple, but I am stumped.