Skip to content

Instantly share code, notes, and snippets.

@alexsleat
alexsleat / fuzzyTime_num.py
Created November 13, 2011 14:25
Python Fuzzy Clock, more info at alexsleat.co.uk
#!/usr/bin/python
from time import gmtime, strftime
#Get minutes
time_min = strftime("%M", gmtime())
#Get hour, as int
time_hour = int(strftime("%H", gmtime()))
#round minutes to nearest 5, return as int