Skip to content

Instantly share code, notes, and snippets.

@mishudark
Created February 15, 2011 17:56
Show Gist options
  • Save mishudark/827915 to your computer and use it in GitHub Desktop.
Save mishudark/827915 to your computer and use it in GitHub Desktop.
$minuit = strtotime("00:00:00.00");
$hora1='00:00:20.00';
$timestamp1 = strtotime($hora1)-$minuit;
$hora2='00:00:40.00';
$timestamp2 = strtotime($hora2)-$minuit;
$SUMA=$timestamp1+$timestamp2+$minuit;
echo date("H:i:s",$SUMA);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment