You are here

function _datereminder_internal_date_to_datetime in Date Reminder 6

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

Turn a date in internal string format (from database) into DateTime.

Parameters

string $dt: Internal (UTC) date string to convert to DateTime object

Return value

DateTime The resulting object

1 call to _datereminder_internal_date_to_datetime()
datereminder_token_values in ./datereminder.module
Implements hook_token().

File

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

Code

function _datereminder_internal_date_to_datetime($dt) {
  $tz = new DateTimeZone('UTC');
  return new DateTime($dt, $tz);
}