Lines Matching refs:dt
5 $dt = new DateTime('@1604215800');
6 $dt->setTimezone(new DateTimeZone('America/Boise'));
7 echo "{$dt->format('Y-m-d H:i:s T')} | {$dt->getTimestamp()}\n";
8 $dt->add(new DateInterval('PT1H'));
9 echo "{$dt->format('Y-m-d H:i:s T')} | {$dt->getTimestamp()}\n";
10 $dt->add(new DateInterval('PT1H'));
11 echo "{$dt->format('Y-m-d H:i:s T')} | {$dt->getTimestamp()}\n";
12 $dt->add(new DateInterval('PT1M'));
13 echo "{$dt->format('Y-m-d H:i:s T')} | {$dt->getTimestamp()}\n\n";
15 $dt = new DateTime('@1604219400');
16 $dt->setTimezone(new DateTimeZone('UTC'));
17 echo "{$dt->format('Y-m-d H:i:s T')} | {$dt->getTimestamp()}\r\n";
18 $dt->setTimezone(new DateTimeZone('America/Boise'));
19 echo "{$dt->format('Y-m-d H:i:s T')} | {$dt->getTimestamp()}\r\n";