Exif photo datetime

From Photostand Wiki

Jump to: navigation, search
exif_photo_datetime()

The exif_photo_datetime function will return the date and time value of when the photo was taken. It can be used in index.php (template) or popup.php, at any time.

Parameters

This function has no parameters.

Examples

In a normal paragraph

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>

	<title>My photoblog</title>

    </head>
    <body>

        <p>This photograph was taken on <?php echo exif_photo_datetime(); ?>.</p>

    </body>
</html>

Here, the date and time will simply appear as normal text directly in the page.

Personal tools