We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 526c7ed + 52656da commit 7c7e4aeCopy full SHA for 7c7e4ae
1 file changed
MagTag_Cat_Fed_Clock/code.py
@@ -39,6 +39,8 @@ def hh_mm(time_struct, twelve_hour=True):
39
elif time_struct.tm_hour > 0:
40
hour_string = str(time_struct.tm_hour) # 1-12
41
postfix = "a"
42
+ if time_struct.tm_hour == 12:
43
+ postfix = "p" # 12 -> 12 (pm)
44
else:
45
hour_string = '12' # 0 -> 12 (am)
46
0 commit comments