hour and minutes in max?

Rui Caldas's icon

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

Wesley Smith's icon

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.

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

best,
wes