Jump to content

[RESOLVED] IRC Raw 333 - Converting help :)


Madza91
 Share

Recommended Posts

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) :)

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...