Forums > Javascript

hour and minutes in max?

April 30, 2006 | 6:21 pm

hello!

My patch needs to know "what time it is!"

there are some way to bring the hours and minuts of the operative system (windows in this case) to my patch?

in js object… in the help there are one clock! so i think thas is possible to ouput the "time" of that object… but i’dont understand the js language so… can you help me to create two outputs from js object with the hour nad minute information!?

tkx for your time!!!


April 30, 2006 | 6:27 pm

This is built into Javscript already. If you haven’t already looked,
a quick perusal of the JS core guide will give you a good idea as to
what’s in JS that isn’t Max specific and thus not in the JSGuide PDF.

http://www.webreference.com/javascript/reference/core_ref/

As for your question, check out the JS Date object:
http://www.webreference.com/javascript/reference/core_ref/da te.html

best,
wes


Viewing 2 posts - 1 through 2 (of 2 total)