Used By
Used By | Description |
---|---|
wp-admin/includes/image.php: wp_read_image_metadata() | Get extended image metadata, exif or iptc as available. |
Convert the exif date format to a unix timestamp.
(string) (Required)
(int)
File: wp-admin/includes/image.php
function wp_exif_date2ts( $str ) { list( $date, $time ) = explode( ' ', trim( $str ) ); list( $y, $m, $d ) = explode( ':', $date ); return strtotime( "{$y}-{$m}-{$d} {$time}" ); }
Version | Description |
---|---|
2.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_exif_date2ts