I have this code is the clock time. This icon makes the watch not move. You have to refresh the page to see the time again How can I make this icon animated over time in real time?
I hope you understand my question as I translate from Google
↓
<?php
date_default_timezone_set("Africa/Cairo");
// فرق التوقيت Tunis
echo "Server Time " . date("h:i:sa");
?>
CodePudding user response:
You can create a gif with a clock where every frame is one specific minute, you could get the index of it by hours * 60 minutes
I've found a video which you can use to test your app: https://pixabay.com/videos/time-clock-watch-loop-hours-15604/ You can download it, convert it to a gif using a video editor and analyze the number of frames per clock minute.
CodePudding user response:
Thank you for the answer, but it doesn't work. This is a big watch. I'm using a digital watch. Look at this screenshot https://i.stack.imgur.com/Y5qPa.png