Jump to content
Sign in to follow this  
Madza91

[RESOLVED] IRC Raw 333 - Converting help :)

Recommended Posts

Madza91

Hello... I writing some IRC Client and i have one little problem with Raw number 333...

Raw 333 - This is returned for a TOPIC request or when you JOIN, if the channel has a topic.

When I join some Channel this is what I get:

... 333 Nick #channel SomeBody 1225814334,

In mIRC this number 1225814334 can be converted with this command:

//echo -a $asctime(1225814334)

And i see is 1225814334 = Tue Nov 04 16:58:54

Than, my question is does somebody have idea how to convert this number (1225814334) to a readable value (Tue Nov 04 16:58:54) ?!?!

Please help ;/

Edited by n3nE

[quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)

Share this post


Link to post
Share on other sites
rover

Hello... I writing some IRC Client and i have one little problem with Raw number 333...

When I join some Channel this is what I get:

... 333 Nick #channel SomeBody 1225814334,

In mIRC this number 1225814334 can be converted with this command:

//echo -a $asctime(1225814334)

And i see is 1225814334 = Tue Nov 04 16:58:54

Than, my question is does somebody have idea how to convert this number (1225814334) to a readable value (Tue Nov 04 16:58:54) ?!?!

Please help ;/

looks like its Epoch time

you'll need to convert the format yourself

EPOCH time, converting to and from

http://www.autoitscript.com/forum/index.ph...67&hl=epoch

Happy Holocene n3ne :mellow:

#include <Date.au3>

$sNewDate = _DateAdd( 's',1225814334, "1970/01/01 00:00:00")
ConsoleWrite('-$sNewDate = ' & $sNewDate & @crlf)
MsgBox( 4096, "", "Date: " & $sNewDate )

I see fascists...

Share this post


Link to post
Share on other sites
Madza91

Oh man, you are the best :mellow:


[quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)

Share this post


Link to post
Share on other sites
TehWhale

Hello,

It appears you have found your answer to your question.

Please take the time to edit your thread title with [RESOLVED] so others know that is it resolved.

You can do this by scrolling to the top of your thread, clicking EDIT and then Full Edit and adding: "[RESOLVED]"

to the front of your thread title.

Thanks for your cooperation.

Share this post


Link to post
Share on other sites
Madza91

Ok! :mellow:


[quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)

Share this post


Link to post
Share on other sites
rover

Oh man, you are the best :mellow:

@n3ne

No, just not the worst :(

Cheers


I see fascists...

Share this post


Link to post
Share on other sites
Madza91

Hehehe :mellow:

P.S. Look at my Custom member title (below avatar) ;D


[quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×