timestamp to 12 hour readable time.

Which time library? And where did the timestamp come from?
Usually a time library has API calls to do this conversion for you.

An issue you can run into is time zone. Epoch time stamps are usually all synced to the 0 meridian.
So if you are not there you will have to adjust it to your timezone to get a local time.

--- bill