You are here

function _datereminder_date_format_internal in Date Reminder 6

Same name and namespace in other branches
  1. 6.2 includes/date.inc \_datereminder_date_format_internal()
  2. 7 includes/date.inc \_datereminder_date_format_internal()

Return internal format string for a DateTime.

Parameters

DateTime $dt:

Return value

string String representation of $dt

3 calls to _datereminder_date_format_internal()
datereminder_token_values in ./datereminder.module
Implements hook_token().
_datereminder_cron in includes/cron.inc
Implements hook_cron().
_datereminder_get_next_reminder in includes/date.inc
Compute time of next reminder.

File

includes/date.inc, line 190
Some functions dealing with dates.

Code

function _datereminder_date_format_internal($dt) {
  $tz = new DateTimeZone('UTC');
  $dt
    ->setTimeZone($tz);
  return $dt
    ->format('Y-m-d H:i:s');
}