Scrap date and time from https://www.timeanddate.com/
use BeautifulSoup to extract the time and date portion from the page's HTML content.
Nect, using pyperclip to copy the content to your clip board.
- I was facing a problem, that, my Desktop's time was getting changed after I turn-off and reopen the Desktop. So, this is just form of an utility to copy the time to my clipboard, so I can directly paste the content to the cmd(administrator) and change the time.
- I tried using pyautogui and win32api (separately) to resolve the isse, (to change the time), but it can't be fixed like that. But now my code works just fine. Whenever, I feel like, then, I run the program and open cmd as administrator(type, 'time') and paste the content and hit enter, to literally change the time.
The requirements.txt file is been provided. you can open your cmd or terminal, and type, pip3 install -r requirements.txt to install the requirements.