date_iso8601

Versions
mediamosa-21
date_iso8601($date)

Returns an ISO8601 formatted date based on the given date.

Can be used as a callback for RDF mappings.

Parameters

$date A UNIX timestamp.

Return value

string An ISO8601 formatted date.

Related topics

Code

includes/common.inc, line 1837

<?php
function date_iso8601($date) {
  // The DATE_ISO8601 constant cannot be used here because it does not match
  // date('c') and produces invalid RDF markup.
  return date('c', $date);
}
?>