• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

EN Recover the date / time

Status
Not open for further replies.

arlextra

Member
Hello, I tried to retrieve the time and date via pre-defined function javascirpt (getTime() or getDate() )
But Sinusbot told that the function is not defined. (I do not too much javascript :/ )

On the API scripting page I have not found a function that allows what I want. She he can recover time / date?

Thank you in advance :)
 

Xuxe

Containerholic
Staff member
is awesome!
V.I.P.
Contributor
Insider
Hey,

in the Scripting API, not all functions available as in Javascript but only certain.
However, for the release of the time functions I would also.
 

flyth

is reticulating splines
Staff member
Developer
Contributor
Code:
var x = Date.now();
var y = new Date().getTime();
should work.
 
Status
Not open for further replies.
Top