On the os.date documentation, there is a slight inconsistency. It says that %p
returns either “am” or “pm”, but it actually returns “AM” or “PM” (uppercase letters instead of lowercase). Not a huge difference, but still seems like it needs to be updated.
Type this into a script:
print(os.date("%p", os.time()))
This is the output:
The letters are uppercase instead of lowercase, but the documentation says it should be lowercase.