function PMPAPIDrupal::date in Public Media Platform API Integration 7
Generates an ISO 8601 time from a timestamp
Parameters
string $timestamp: A Unix timestamp
Return value
string A ISO 8601 timestamp
2 calls to PMPAPIDrupal::date()
- PMPAPIDrupal::createDoc in classes/PMPAPIDrupal.php 
- Creates a doc to be pushed to the PMP.
- PMPAPIDrupalPush::createHypermediaDoc in pmpapi_push/classes/ PMPAPIDrupalPush.php 
- Creates a hypermedia doc to be sent to the PMP.
File
- classes/PMPAPIDrupal.php, line 394 
- Defines a class for PMP creation/transmission and retreival/parsing
Class
- PMPAPIDrupal
- @file
Code
function date($timestamp = '') {
  if ($timestamp == '') {
    $timestamp = REQUEST_TIME;
  }
  return format_date($timestamp, 'custom', DateTime::ISO8601);
}