![]() |
Time and date at the server
How would I go about getting the time and date at the server regardless of who is logged in? I have seen the following:
PHP Code:
Is there a magic way to craft the above code to give me the results I am looking for? |
yes that code will give the user the correct current time based upon their offset values.
|
Quote:
|
If you just want the server time you can use the following
Code:
$dtnow = date(m-d-Y H:i:s); That will return 02-02-2005 13:25:23. Then you can add the EST or whatever. For more date options try www.php.net |
Thanks for the input, but I was PMed with this solution (which I thought I would share if the question were to come up again). It seems to work as requested.
PHP Code:
|
All times are GMT. The time now is 08:40 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|