elif time.hour == 12 && time.ampm == PM: return 12
elif time.ampm == PM: return time.hour+12
else: return time.hour