Skip to content

Instantly share code, notes, and snippets.

@barrychapman
Created March 18, 2016 04:08
Show Gist options
  • Save barrychapman/a4d72d584204399a4464 to your computer and use it in GitHub Desktop.
Save barrychapman/a4d72d584204399a4464 to your computer and use it in GitHub Desktop.
debug($secure); // line 112
$time = $secure['time'];
$interval = new \DateInterval('PT1M');
$time->add($interval);
$currentTime = new DateTime();
debug($secure); // line 121
debug($time);die; // line 123
// output
/src/Controller/Component/ImportSecurityComponent.php (line 112)
[
'token' => 'O30CsaMMriHVPwGU7s6X90P0',
'time' => object(DateTime) {
date => '2016-03-18 00:05:12.000000'
timezone_type => (int) 3
timezone => 'America/Detroit'
},
'id' => '747346'
]
/src/Controller/Component/ImportSecurityComponent.php (line 121)
[
'token' => 'O30CsaMMriHVPwGU7s6X90P0',
'time' => object(DateTime) {
date => '2016-03-18 00:06:12.000000'
timezone_type => (int) 3
timezone => 'America/Detroit'
},
'id' => '747346'
]
/src/Controller/Component/ImportSecurityComponent.php (line 123)
object(DateTime) {
date => '2016-03-18 00:06:12.000000'
timezone_type => (int) 3
timezone => 'America/Detroit'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment