Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_exif_date2ts [ WordPress Function ]

wp_exif_date2ts ( $str )
Parameters:
  • (string) $str
Returns:
  • (int)
Defined at:



Convert the exif date format to a unix timestamp.

Source


<?php
function wp_exif_date2ts($str) {
    @list( 
$date$time ) = explode' 'trim($str) );
    @list( 
$y$m$d ) = explode':'$date );

    return 
strtotime"{$y}-{$m}-{$d} {$time});
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics