Author: Bocaletto Luca
Language: Python
License: GPLv3
Atomic Time Synch is a Python application that allows you to synchronize your system time with an atomic time source using the Network Time Protocol (NTP). It provides both manual and automatic time synchronization options and allows you to choose from different NTP servers.
- Manually update the system time.
- Automatically synchronize the system time at specified intervals.
- Choose from a list of NTP servers for time synchronization.
- Display both atomic time and local time.
To run Atomic Time Synch, you need to have Python and PyQt5 installed. You can install PyQt5 using the following command:
pip install PyQt5
- Run the application by executing
AtomicTimeSynch.py
. - The main window will appear with options for manual and automatic time synchronization.
- Click the "Update Time" button to manually update the system time.
- Choose an NTP server from the drop-down list and set the synchronization interval in seconds.
- Click the "Start Automatic Update" button to start automatic synchronization.
- To stop automatic synchronization, click the "Stop Automatic Update" button.
- You can also update the system time with the "Sync System Time" button.
The application is built using PyQt5 and consists of the following components:
AtomicTimeApp
: The main application window.get_atomic_time()
: Function to retrieve atomic time from an NTP server.get_local_time()
: Function to get the current local time.sync_system_time_with_ntp()
: Function to synchronize the system time with an NTP server.