1 cron_example.module cron_example_date_iso8601($date)

Related topics

File

modules/examples/cron_example/cron_example.module, line 277
Demonstrates use of the Cron API in Backdrop - hook_cron()

Code

function cron_example_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);
}