You are here

function _office_hours_convert_to_ampm in Office Hours 7

Same name and namespace in other branches
  1. 6.2 office_hours.module \_office_hours_convert_to_ampm()
  2. 6 office_hours.module \_office_hours_convert_to_ampm()

Helper function to convert '1630' or '16:30' to '4:30 pm'.

For formatting options, see http://www.php.net/manual/en/function.date.php

1 call to _office_hours_convert_to_ampm()
_office_hours_show_ampm in ./office_hours.module
Helper function to convert a range of hours from '13' to '13:00 (01:00 pm)'.

File

./office_hours.module, line 161
Creates a field and widget for inserting working or office hours per day

Code

function _office_hours_convert_to_ampm($time, $timeformat = 'g:i a') {
  return _office_hours_time_format($time, $timeformat);
}