Skip to content

Instantly share code, notes, and snippets.

@maggiben
Created October 8, 2015 14:39
Show Gist options
  • Save maggiben/481750eca15200db534a to your computer and use it in GitHub Desktop.
Save maggiben/481750eca15200db534a to your computer and use it in GitHub Desktop.
$data = array(
'interval' => strtotime( $data[1]->date ) - strtotime( $data[0]->date ),
'data' => $values,
'units' => $unit['unit'],
'start' => strtotime( $data[0]->date ),
'end' => strtotime( $to ),
'name' => $entity['name'],
'metric' => $metric['name'],
'source' => $entity['data']['source']['name'],
'observation_start' => $entity['data']['observation_start']
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment