how do you display the AM/PM on the end of a time display?
eg (11:10 to 11:10 AM)
This is a discussion on Am/pm within the C++ Programming forums, part of the General Programming Boards category; how do you display the AM/PM on the end of a time display? eg (11:10 to 11:10 AM)...
how do you display the AM/PM on the end of a time display?
eg (11:10 to 11:10 AM)
The code from the previous thread will give you hours in the 24 hour clock format, so you need to test the value contained in the tm_hour variable and append AM/PM depending on the value and minus 12 if it's PM.
zen