You are here

function apachesolr_date_format_range in Apache Solr Search 6

Same name and namespace in other branches
  1. 5.2 apachesolr.module \apachesolr_date_format_range()
  2. 6.2 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"

1 call to apachesolr_date_format_range()
theme_apachesolr_breadcrumb_date_range in ./apachesolr_search.module
Proxy theme function for 'created' and 'changed' date fields.

File

./apachesolr.module, line 1093
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);
}