|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Time difference with filemtime
I'd like to know how many minutes ago a file has been modified.
PHP Code:
Getting the date it has been modified is easy. But I'm having troubles in getting the time-difference in minutes between now date("Y-m-d H:i") and the file date....can anyone help me out? This seems to be very easy..it's annoying me for almost an hour now |
|
#2
|
|||
|
|||
|
PHP Code:
Untested but should work. You can take it a step further by doing the calculation for days also.
__________________
~ Joe Penn We work for free to help make this a valuable resource on the internet. Do you appreciate the help - did we provide help that will help you prosper and help that has contributed to sharpening your current skill set? Show your appreciation and purchase something from our Amazon Wishlist's - it's simple and a great way to say thank you. |
|
#3
|
|||
|
|||
|
Thanks!
Thanks a lot...with time(); instead of timestamp(); I've got it working now...I hate time-programming, time-stamps and time-zones...
|
|
#4
|
|||
|
|||
|
Lol - timestamp() - I am losing it...
![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Time difference with filemtime |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|