function merci_time_format in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6
Same name and namespace in other branches
- 6.2 includes/api.inc \merci_time_format()
- 7.2 includes/api.inc \merci_time_format()
Calculates the short hour/minute time format based on the site settings.
1 call to merci_time_format()
- merci_format_time in ./
merci.module - Formats a time value into the site's preferred format.
File
- ./
merci.module, line 3194 - MERCI - Managed Equipment Reservation Checkout and Inventory
Code
function merci_time_format() {
static $time_only_format = NULL;
if (empty($time_only_format)) {
$short_date_format = variable_get('date_format_short', 'm/d/Y - H:i');
$time_only_format = date_limit_format($short_date_format, array(
'hour',
'minute',
));
}
return $time_only_format;
}