|
-
Dec 27th, 2009, 11:45 PM
#1
Re: Date last modified javascript
 Originally Posted by Justa Lol
time(); is the current time which changes every second... but if you use echo time(); then it will print a number i think its 365 * 24 * 60 * 60 = 1 year(1971) basically, when you save what you edited you could save the value that is printed when you echo time(); then you could use that time(what you saved) and load it into a variable then use that variable in the date(); function...
date("F d Y H:i:s.", $var); now the $var is the variable you load the data you saved when you printed time(); which will display the time you saved/printed time(); and when you did that is the last time you modified..
Ah ok, thanks! Do you know why the date/time would be different on the uploaded site to when I test it on my local machine. The code I'm using keeps the numbers of seconds between the last mod time as it was on my local machine just the time is different on the uploaded website.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|