PDA

View Full Version : Clientside system time?


JkWhoSaysNi
03-05-2007, 11:30 PM
Is it possible to get the OS clock of the player?

I'm working on a simple news ticker but I want the player to be notified how long ago the news item was created by timestamping it. Obviously this would be best in their local time so is it possible to get the value of their system clock?

Thanks.

Angel_Light
03-05-2007, 11:34 PM
No, not that I'm aware of. You could make a clock script and have them set there timezone with it.

Twinny
03-05-2007, 11:46 PM
Wouldn't a clientside timevar2 be the os's time? (Assuming there is a client timevar2 here)

Skyld
03-05-2007, 11:54 PM
I'm fairly sure timevar2 clientside gives local time, however that's maybe subject to change, I'm not sure.

Riot
03-06-2007, 01:02 AM
I'm fairly sure timevar2 clientside gives local time, however that's maybe subject to change, I'm not sure.

Last I checked under Windows timevar2 was how long the client has been opened.

JkWhoSaysNi
03-06-2007, 01:03 AM
That's what i thought too.

Skyld
03-06-2007, 01:06 AM
Last I checked under Windows timevar2 was how long the client has been opened.
Now you mention it, you're right; on Linux and Mac, it returns local time since 1970.

zokemon
03-06-2007, 09:39 PM
timevar2 is your system clock time on the clientside.