![]() |
Timestamp
I'm on the bug again..
Is there any function that gives you the current date/time? I think I've seen one used before.. I've attempted to use timevar2 to find the date/time, but it seems to be off. According to the value it was returning, it's only been 10 days. O_o If there isn't a function, could one be added? |
Quote:
|
minutes = timevar2 / 60;
hours = minutes / 60; days = hours / 24; Neh? |
Quote:
|
It's giving me the same thing on both client and serverside..
EDIT: Nevermind. For some odd reason, I had two //#CLIENTSIDE lines.. O-o Thanks. But it'd still be nice to be able to read from your computer's clock to get the date/time. |
Well what you can do is set the unix time from serverside in a clientr. variable, then interpret that on clientside to adjust the clientside timevar2 to unixtime (by taking the difference, then summing it back on when doing timestamps). It'll be out be a few seconds due to lag, but should be ok.
If your using the timestamps for some kind of secure thing though, you should probably be doing it all on serverside. ^^ |
| All times are GMT +2. The time now is 07:17 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.