You are here

function _datereminder_internal_date_to_datetime in Date Reminder 6.2

Same name and namespace in other branches
  1. 6 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

2 calls to _datereminder_internal_date_to_datetime()
datereminder_form_summary in includes/datereminder_form.inc
Build a form with a list of reminders.
datereminder_token_values in ./datereminder.module
Implements hook_token().

File

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

Code

function _datereminder_internal_date_to_datetime($dt) {
  $foo = "@{$dt}";

  // This takes Unix timestamp and returns DateTime in UTC.
  return new DateTime($foo);
}