I am developing a Web Application using PHP Laravel that involves some processing as well. What I am doing now is I am trying to extract the time taken from the image file when user uploads the file. I can extract the data using exif_read_data function like this.
$exif_data = exif_read_data($file);
echo $exif_data['DateTimeOriginal'];
When I retrieve, the format is YYYY:MM:DD H:m:s. But I also need to know the milli/nano seconds as well after seconds. So, is there a way to retrieve more precise time the photo is taken from the image file and how can I do it?