Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Getting Date and Time? (https://forums.graalonline.com/forums/showthread.php?t=134259337)

Cubical 05-29-2010 10:52 AM

Getting Date and Time?
 
Is there a variable(s) that have the servertime as shown on the taskbar at the bottom of the client and one for the date like 2/10/2011?

xAndrewx 05-29-2010 11:12 AM

HTML Code:

Serverlist_TaskBar_Label.text
Hope this helps! :)

Cubical 05-29-2010 12:13 PM

is there a way to get the date?

cbk1994 05-29-2010 08:11 PM

PHP Code:

formatTimeString("format"timevar2);
convertTimeToString(timevar2); // Sat May 29 14:15:15 2010 

Both are serverside only until v6 is released. formatTimeString uses the same parameters as PHP's strftime.

Cubical 06-03-2010 04:16 AM

Quote:

Originally Posted by cbk1994 (Post 1579281)
PHP Code:

formatTimeString("format"timevar2);
convertTimeToString(timevar2); // Sat May 29 14:15:15 2010 

Both are serverside only until v6 is released. formatTimeString uses the same parameters as PHP's strftime.

Oh thanks, I didn't even know those existed. I looked in the wiki and didn't find it.

salesman 06-03-2010 05:06 AM

Quote:

Originally Posted by Cubical (Post 1579985)
Oh thanks, I didn't even know those existed. I looked in the wiki and didn't find it.

I've found /scripthelp is usually more helpful than the wiki (where it's impossible to find anything unless you know exactly what you're looking for).

'/scripthelp time' would have given you what you needed right away


All times are GMT +2. The time now is 07:15 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.