Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function covtime($youtube_time){
- $start = new DateTime('@0'); // Unix epoch
- $start->add(new DateInterval($youtube_time));
- if (strlen($youtube_time)>8){
- return $start->format('g:i:s');} else {
- return $start->format('i:s');}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement