Getting system time

TFF's icon

I want to use Max to create a 24-hour composition. Rather than have it start at the beginning when the patch is loaded, however, I want it to jump to a certain place based on the listener's current system time (thus something like cpuclock wouldn't work).

This is most likely going to be a difficult undertaking, but first things first: I want a method of getting the local system's time. I know how to do this in Javascript, but this is a function that will be repeated over and over for (ideally) a full 24 hours. If there is a more efficient way to do this, I'd love to know about it.

Best,
-Zach

Christopher Dobrian's icon

The date object?

TFF's icon

Hey, look at that!

Don't know why I hadn't seen this before, eesh. Thanks.