![]() |
Accessing Date/Time of Computer Clock.
Is there a way to access the current Date and Time of one's computer clock? I'm looking to incorporate a date and time along with an email when it's sent inside AEON's email system.
Of course I could create a server clock that works on a timezone, and allow players to select their own timezone and have it convert etc, but that's more work than is necessary (particularly as I don't know a lot of timezones). Many thanks in advance. |
Not really, on Mac/Linux you can use timevar2 to calculate it but you should be using a server-side clock though. Otherwise players could just set their clock to a time in the past and send emails from 1980 or something wild like that.
|
In response to the 1980 thing, I was going to send along the value of timevar2 then when they receive the email, check their clock time and the current value of timevar2, and simply subtract until it is correct. That way the player sending the email would say it has been sent from 1980 (until they change their clock back), but the player receiving would have it state the correct time it was sent, as per their own computer clock.
But since there's not a way to access said clock I guess I'll just use a server-side clock. Thanks buddy. |
timevar is clientside
edit: timevar2 executed clientside |
Quote:
|
Quote:
timevar increments at like 5 seconds per tick sry |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
NO YOU! :cool: |
Quote:
It didn't really matter though. Given the fact that it's different from the way it works on Linux/Mac it's useless for time/date calculations. Still useful for any delta time stuff though, and that's what it's mostly used for I guess. |
| All times are GMT +2. The time now is 06:16 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.