Quote:
Originally Posted by JaySeeEm
PHP Code:
// Added after seconds variable
var ampm = h >= 12 ? 'PM' : 'AM';
h = h % 12;
h = h ? h : 12;
Incase anyone wants to display the time in the 12 hour format with am or pm.
If there is a better way, let me know!
- Justin
|
Nice. I have an AM/PM version, I just never uploaded it since nobdy seamed too interested. Nice coding style. :up: