Advertisement
Guest User

Untitled

a guest
Dec 13th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. def s21c_vremya():
  2. global hour
  3. from time import localtime, strftime
  4. t = strftime("%H:%M:%S", localtime())
  5. hour, min, sec = t.split(":")
  6. hour = int(hour)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement