You are here

function facetapi_luceneapi_timestamp_convert in Facet API 6

Converts all timestamps in an array to dates in ISO 8601 format.

Parameters

&$value: An integer containing the timestamp.

$key: An integer containing the array key.

$gap: A string containing the gap, see FACETAPI_DATE_* constants for valid values. Defaults to FACETAPI_DATE_SECOND.

1 string reference to 'facetapi_luceneapi_timestamp_convert'
FacetapiLuceneapiAdapter::fetchDate in contrib/facetapi_luceneapi/facetapi_luceneapi.adapter.inc
Fetches data from facets that filter results by date ranges.

File

contrib/facetapi_luceneapi/facetapi_luceneapi.module, line 147
The Search Lucene API module's implementation of the the Facet API.

Code

function facetapi_luceneapi_timestamp_convert(&$value, $key, $gap) {
  $value = facetapi_isodate($value, $gap);
}