Files
TheBigPromptLibrary/CustomInstructions/gpts/knowledge/David/update_time.py
2024-03-08 10:31:22 -08:00

11 lines
219 B
Python

import datetime
def update_time():
current_time = datetime.datetime.now().isoformat()
with open('time_tracker.txt', 'w') as file:
file.write(current_time)
if __name__ == "__main__":
update_time()