How to calcualte loin and logout time?

Hi All,

Anyone can please tell me how to calculate login and logout time(date:hours:minutes:second) in php pages, Please give me coding of it, we would be appreciated your kid of help.

The date() function is probably what you’re looking for. In addition to the information you’ve requested, you should probably include an offset too unless you’re providing a method of changing their time offsets per account so times match up with each user individually.

Here’s an example of the date() function:

echo date("D, d M Y H:i:s O")

It returns a string with the current date, time, and the server’s offset from UTC.
I hope this helps!

Thanks for Suggestion