1 date_sql_handler.inc | date_sql_handler::format_help($format) |
Converts a format string into help text, i.e. 'Y-m-d' becomes 'YYYY-MM-DD'.
Parameters
string $format: A date format string.
Return value
string: The converted help text.
File
- core/
modules/ date/ views/ date_sql_handler.inc, line 570 - SQL helper for Date API.
Class
- date_sql_handler
- A class to manipulate date SQL.
Code
function format_help($format) {
$replace = array(
'Y' => 'YYYY',
'm' => 'MM',
'd' => 'DD',
'H' => 'HH',
'i' => 'MM',
's' => 'SS',
'\T' => 'T',
);
return strtr($format, $replace);
}