Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import time
- def get_current_time():
- return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
- def main():
- # Print the ASCII art
- print(f"""
- ████████╗██╗███╗ ███╗███████╗
- ╚══██╔══╝██║████╗ ████║██╔════╝
- ██║ ██║██╔████╔██║█████╗
- ██║ ██║██║╚██╔╝██║██╔══╝
- ██║ ██║██║ ╚═╝ ██║███████╗
- ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝
- """)
- # Get the current time in minutes
- minutes = int(round(time.time() / 60))
- print(f"Time in Minutes:", minutes)
- # Get the current date and time
- current_date_time = get_current_time()
- print(f"The current date and time is: {current_date_time}")
- if __name__ == "__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement