in reply to How do I convert localtime to display 12 hr time instead of 24 hr time

use POSIX "strftime"; $time = lc strftime("%I:%M%p %m/%d/%y", localtime($_[0]));
  • Comment on Re: How do I convert localtime to display 12 hr time instead of 24 hr time
  • Download Code