Forum Topic: global time?

(76 views • 2 replies)

This topic is 1 page long.

<< < > >>
None

Pumahawk

Reply To Post Reply & Quote

Posted at: 6/16/09 01:50 AM

Pumahawk LIGHT LEVEL 05

Sign-Up: 06/21/05

Posts: 404

I made a chatroom thhat displays the time of each message, only problem is it reads the time from the local comp so times get all mixed up, is there any global time or something that i can use?


None

UnknownFury

Reply To Post Reply & Quote

Posted at: 6/16/09 02:16 AM

UnknownFury EVIL LEVEL 26

Sign-Up: 08/10/05

Posts: 6,031

AS2
AS3

You can use hoursUTC(AS3) or getUTCHours()(AS2) to get the hours in universal time. You can do a similar thing for the other values you need.

Portfolio(Under construction): UnknownFury.com |
Msn: giant_ak_47@msn.com | Contact: me@unknownfury.com
Follow me on twitter!


None

Pumahawk

Reply To Post Reply & Quote

Posted at: 6/16/09 09:14 PM

Pumahawk LIGHT LEVEL 05

Sign-Up: 06/21/05

Posts: 404

At 6/16/09 02:16 AM, UnknownFury wrote: AS2
AS3

You can use hoursUTC(AS3) or getUTCHours()(AS2) to get the hours in universal time. You can do a similar thing for the other values you need.

thanks alot! thats exactly what i was looking for


All times are Eastern Standard Time (GMT -5) | Current Time: 09:25 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!