Posted By

CJness on 10/01/10


Tagged

php function convert seconds


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

bobbym245


function convert_to_seconds


 / Published in: PHP
 

  1. function convert_to_seconds($input)
  2. {
  3. return strtotime($input.' 01-01-1970') + 3600;
  4. }
  5.  
  6. echo convert_to_seconds('01:23:54');

Report this snippet  

You need to login to post a comment.