Created
July 7, 2015 12:17
-
-
Save enko/97b7deb9a5d33dc27599 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$int = new DateInterval('P27DT19H26M39S'); | |
$now = new DateTime(); | |
var_dump($now); | |
$now->add($int); | |
var_dump($now); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment