We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5aeaa3 commit 52656daCopy full SHA for 52656da
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