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 ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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