Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse RPL_CREATIONTIME #260

Closed
rgajrawala opened this issue Dec 1, 2014 · 1 comment
Closed

Parse RPL_CREATIONTIME #260

rgajrawala opened this issue Dec 1, 2014 · 1 comment

Comments

@rgajrawala
Copy link

When I join a channel, I receive the rpl_creationtime event. An example time string received (message.args[2]) is 1416603701. How do I parse this into a Date object?

@rgajrawala rgajrawala changed the title Parse RPL_CONNECTIONTIME Parse RPL_CREATIONTIME Dec 2, 2014
@rgajrawala
Copy link
Author

Oh I got it, just multiply by 1000!
EX: var creationDate = new Date(+message.args[2] * 1000);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant