You are here

function getdirections_get_datestamp in Get Directions 7.3

Same name and namespace in other branches
  1. 7.2 getdirections.module \getdirections_get_datestamp()

Fetch a timestamp

Return value

array json

1 string reference to 'getdirections_get_datestamp'
getdirections_menu in ./getdirections.module
Implement hook_menu().

File

./getdirections.module, line 1947
Fetches google map directions.

Code

function getdirections_get_datestamp() {
  $d = $_GET['d'];
  $t = $_GET['t'];
  $date = $d . ' ' . $t;
  $time = strtotime($date);
  drupal_json_output(array(
    'content' => $time * 1000,
  ));
}