date = CreateObject("roDateTime")
date.FromSeconds(timestamp)
i tried the same thing but it is always showing in telnet <UNINITIALIZED>
sub timeConverter() date = CreateObject("roDateTime") seconds = date.FromSeconds(1460400862) ?seconds end sub
i am trying to call the function from init()
Please tell me what i am doing wrong
You're setting seconds to the return value of a function that doesn't return a value, hence the <UNINITIALIZED>. I'm not sure what you're trying to do since you already know the seconds (1460400862). You could do this, but it doesn't get you anywhere:
date = CreateObject("roDateTime") date.FromSeconds(1460400862)
seconds = date.asSeconds() ?seconds
-JT