function apachesolr_date_format_range in Apache Solr Search 6.2
Same name and namespace in other branches
- 5.2 apachesolr.module \apachesolr_date_format_range()
- 6 apachesolr.module \apachesolr_date_format_range()
Format the beginning of a date range query filter that we generated.
Parameters
$start_iso: The start date.
$end_iso: The end date.
Return value
A display string reprepsenting the date range, such as "January 2009" for "2009-01-01T00:00:00Z TO 2009-02-01T00:00:00Z"
2 calls to apachesolr_date_format_range()
- apachesolr_date_display_callback in contrib/
apachesolr_date/ apachesolr_date.module - Handles facet text and breadcrumb displays for dates or date ranges.
- theme_apachesolr_breadcrumb_date_range in ./
apachesolr_search.module - Proxy theme function for 'created' and 'changed' date fields.
File
- ./
apachesolr.module, line 1339 - Integration with the Apache Solr search application.
Code
function apachesolr_date_format_range($start_iso, $end_iso) {
$gap = apachesolr_date_find_query_gap($start_iso, $end_iso);
return apachesolr_date_format_iso_by_gap($gap, $start_iso);
}