How to get the number of the day of the year?

Feb 6, 2013 at 9:44am

How to get the number of the day of the year?

Hello All,

I like to know if it is an even or a odd day of the year.
In pure data it came with the [date] but how to do this in MaxMsp?

thanks!

#66362
Feb 6, 2013 at 10:02am
– Pasted Max Patch, click to expand. –
#238873
Feb 6, 2013 at 10:09am

I think what you’re looking for can be found with mxj now: you’ll get the day of year (today is day #37).
Using pid‘s modulo technique, you’ll then know if the day is odd or even.

p

#238874

You must be logged in to reply to this topic.