How do you display AM or PM in UNIX?

Việt Quân

New member
How do you display AM or PM in UNIX?
Answer
Options Related to Formatting
  1. %p: Prints the AM or PM indicator in uppercase.
  2. %P: Prints the am or pm indicator in lowercase. Note the quirk with these two options. A lowercase p gives uppercase output, an uppercase P gives lowercase output.
  3. %t: Prints a tab.
  4. %n: Prints a new line.
 

Tìm kiếm

Back
Top