Return to Snippet

Revision: 32684
at October 1, 2010 19:53 by CJness


Initial Code
function convert_to_seconds($input)
{
    return strtotime($input.' 01-01-1970') + 3600;
}

echo convert_to_seconds('01:23:54');

Initial URL

                                

Initial Description

                                

Initial Title
function convert_to_seconds

Initial Tags
php, function, convert

Initial Language
PHP