Help with updating time using unix timestamp!!

Hi, I’m trying to make an application for currency converter and the user types into the url to make the application work, “amnt=60&from=USD&to=GBP”

i need to update time using unix timestamp, need to check to see how long since the data has been updated. How do i do that? :confused: If someone can please help, that’ll be great.
Thanks

Heer, Do you mean you wish to use PHP to create a timestamp for timing whatever?

If so, here is a timestamp: date(‘Y-m-d H:i:s’)

So to use it in your PHP script, $StartTime=date(‘Y-m-d H:i:s’); Would store the year-mon-day-time.
When the routine is completed, $EndTime=date(‘Y-m-d H:i:s’); Ditto…

It you only want the time, change the formatting of the date to include whatever you need.
There are tons of date functions in PHP.
Here is a link about them: http://php.net/manual/en/function.date.php

Hope that is what you were asking about. Good luck…

Sponsor our Newsletter | Privacy Policy | Terms of Service