WPDev.one
Core Function
View Source on Trac ↗

wp_exif_date2ts()

wp_exif_date2ts( mixed $str )

Converts the exif date format to a unix timestamp.

Parameters 1 required

Name / Type Description
$str
string

A date string expected to be in Exif format (Y:m:d H:i:s).

Required

Return Value

((int)
| false) The unix timestamp, or false on failure.

Function Information

Since Version
2.5.0
Source File
wp-admin/includes/image.php
Advertisement