How could I adjust the php time format to a.m and p.m with the periods included?
date(\'h:i a\');
This is not something that is built-in to PHP. You'll have to do it manually.
It has been an open request for almost four years now.
There's no straightforward way.
What I'd do is fetch date("a"), see whether it's am or pm, and then output a.m or p.m accordingly.
You do it easy with str_replace:
str_replace(array('am','pm'),array('a.m','p.m'),date('h:i a'));
Hope this helps
Just use str_replace to replace am with a.m. and pm with p.m.