Lowercase instead of uppercase letters for AM/PM in os.date documentation

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.

image

Type this into a script:

print(os.date("%p", os.time()))

This is the output: image
The letters are uppercase instead of lowercase, but the documentation says it should be lowercase.

3 Likes

Hey! Thanks for this report, I’ve just logged it, and we’ll get to it as soon as we can :slight_smile:

7 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.