Skip to content

Instantly share code, notes, and snippets.

@danielkwood
Created February 6, 2024 01:21
Show Gist options
  • Save danielkwood/bba11362a2f82de7d69189f6aa49d219 to your computer and use it in GitHub Desktop.
Save danielkwood/bba11362a2f82de7d69189f6aa49d219 to your computer and use it in GitHub Desktop.
time.asctime example in Python
import time
local_time = time.asctime(time.localtime(time.time()))
print("Current local time: " , local_time)
# Example output: "Current local time: Tue Feb 6 12:20:08 2024"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment