Advertisement
Sweetening

4 Tara

Oct 30th, 2023
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. #!/usr/bin/python
  2. import time
  3. def get_current_time():
  4. return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
  5.  
  6. def main():
  7. # Print the ASCII art
  8. print(f"""
  9. ████████╗██╗███╗ ███╗███████╗
  10. ╚══██╔══╝██║████╗ ████║██╔════╝
  11. ██║ ██║██╔████╔██║█████╗
  12. ██║ ██║██║╚██╔╝██║██╔══╝
  13. ██║ ██║██║ ╚═╝ ██║███████╗
  14. ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝
  15. """)
  16.  
  17. # Get the current time in minutes
  18. minutes = int(round(time.time() / 60))
  19. print(f"Time in Minutes:", minutes)
  20.  
  21. # Get the current date and time
  22. current_date_time = get_current_time()
  23. print(f"The current date and time is: {current_date_time}")
  24.  
  25. if __name__ == "__main__":
  26. main()
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement