Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save madmis/10634775 to your computer and use it in GitHub Desktop.
Save madmis/10634775 to your computer and use it in GitHub Desktop.
<?php
$diff = 450752;
$format = sprintf('%02d:%02d:%02d', ($diff / 3600), ($diff / 60 % 60), $diff % 60);
echo $format;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment