Proper syntax for simple conditional bloginfo language

get_bloginfo returns strings so this works fine:

<?php 
$language = get_bloginfo( 'language' );
if(language == 'en-US')
    the_time('jS F Y');
else
    the_time('d/m/Y');
?>