Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. horafinal := strtotime('08:00');
  2. horaInicial := strtotime('17:00');
  3.  
  4. horafinal := horafinal - horafinal; //00:00
  5. horaInicial := horaInicial - horafinal; //09:00
  6.  
  7. diferenca := horafinal - horaIncial; // 09:00
  8.  
  9. horafinal := strtotime('08:00');
  10. horaInicial := strtotime('17:00');
  11.  
  12. horafinal := strtotime('23:59') + strtotime('00:01'); //00:00
  13. horaInicial := horaInicial - horafinal; //09:00
  14.  
  15. diferenca := horafinal - horaIncial; // 15:00
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement