Last active
January 16, 2017 01:21
-
-
Save linglung/2709d0e0e49763521a0ccf63baa69cee 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 | |
| function covtime($yt_time){ | |
| $start = new DateTime('@0'); // Unix epoch | |
| $start->add(new DateInterval($yt_time)); | |
| return $start->format('H:i:s'); | |
| } | |
| echo covtime('PT2H34M25S'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment