A newer version of Max is available. Click here to access the latest version of this document.

date

Report current date and time

Description

date reports the current date, time, and the number of 1/60th-of-a-second ticks since startup.

Arguments

None.

Messages

date Outputs the current date as a list (month/day/year) out the left outlet.
ticks Outputs the current value of Ticks (the number of 1/60ths of a second since system startup) out the right outlet.
time Outputs the current time as a list (military hours/minutes/seconds) out the middle outlet.

Information for box attributes common to all objects

Output

int: Out right outlet: When the ticks message is received, date sends the current value of Ticks.
list: Out left outlet: When the date message is received, date sends the current date as a list.
list: Out middle outlet: When the time message is received, date sends the current time as a list.

Examples

For pieces which change slowly date can be used as a clock to trigger events

See Also

Name Description
clocker Report elapsed time, at regular intervals
timer Report elapsed time between two events