php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "time difference"

How can PHP be used to calculate the time difference between a user's last offline time and the current server time?

To calculate the time difference between a user's last offline time and the current server time in PHP, you can store the user's last offline time in...

How can PHP calculate the difference in time between a specific date and the current time, including adding 24 hours?

To calculate the difference in time between a specific date and the current time, including adding 24 hours, you can use PHP's DateTime class. First,...

How can the difference between two time variables be calculated and formatted in PHP?

To calculate the difference between two time variables in PHP, you can use the DateTime class to create DateTime objects for the two time variables an...

How can a PHP beginner effectively calculate the time difference until 00:00?

To calculate the time difference until 00:00, you can get the current time using `time()` function, then calculate the seconds remaining until midnigh...

How can you calculate the time difference in seconds between two datetime variables in PHP?

To calculate the time difference in seconds between two datetime variables in PHP, you can convert the datetime variables to Unix timestamps using the...

Showing 1 to 5 of 10000 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 1999 2000 ›
PHP.ORG

A free knowledge base for PHP developers. Open to all.

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.