You are here

function apachesolr_date_iso in Apache Solr Search 8

Same name and namespace in other branches
  1. 5.2 apachesolr.module \apachesolr_date_iso()
  2. 6.3 apachesolr.module \apachesolr_date_iso()
  3. 6 apachesolr.module \apachesolr_date_iso()
  4. 6.2 apachesolr.module \apachesolr_date_iso()
  5. 7 apachesolr.module \apachesolr_date_iso()

Convert date from timestamp into ISO 8601 format. http://lucene.apache.org/solr/api/org/apache/solr/schema/DateField.html

3 calls to apachesolr_date_iso()
apachesolr_datestamp_default_indexing_callback in ./apachesolr.index.inc
This function is used during indexing to normalize the DATESTAMP fields into the appropriate format for Apache Solr.
apachesolr_date_default_indexing_callback in ./apachesolr.index.inc
This function is used during indexing to normalize the DATE and DATETIME fields into the appropriate format for Apache Solr.
apachesolr_index_node_solr_document in ./apachesolr.index.inc
Builds the node-specific information for a Solr document.

File

./apachesolr.module, line 819
Integration with the Apache Solr search application.

Code

function apachesolr_date_iso($date_timestamp) {
  return gmdate('Y-m-d\\TH:i:s\\Z', $date_timestamp);
}