function date_sql_handler::format_help in Date 6
Same name and namespace in other branches
- 5.2 date_api_sql.inc \date_sql_handler::format_help()
- 6.2 date_api_sql.inc \date_sql_handler::format_help()
- 7.3 date_api/date_api_sql.inc \date_sql_handler::format_help()
- 7 date_api/date_api_sql.inc \date_sql_handler::format_help()
- 7.2 date_api/date_api_sql.inc \date_sql_handler::format_help()
Convert a format string into help text, i.e. 'Y-m-d' becomes 'YYYY-MM-DD'.
Parameters
unknown_type $format:
Return value
unknown
File
- ./
date_api_sql.inc, line 538
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);
}