Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Question about yday channel in Clock CHOP

Discuss help and learning documents. Submit your ideas for future tutorials and documents

Question about yday channel in Clock CHOP

Postby morpholux » Fri Sep 28, 2018 2:57 pm

I am not sure, but I notice that the year day channel (yday) return a value that is one less than you will get in a epoch time converter online. I guess it is because the value reflect the fact that the day is not complete (like for minutes or hours values). And I guess that if I check the Clock CHOP the first of January, channel yday will show 0. But the documentation tell that January 1st will start at 1.
This is just puzzling me.
Best regards.
JFR
morpholux
 
Posts: 15
Joined: Tue May 06, 2014 3:27 pm

Re: Question about yday channel in Clock CHOP

Postby morpholux » Sat Sep 29, 2018 11:54 am

Finally, after looking again at the problem and at the CHOP behavior, I think that the wiki page should be corrected:

Instead of
«If Output is Units, it is the Day of year, starting with 1 for January 1.»
I should be
«If Output is Units, it is the Day of year, starting with 0 for January 1.»

Day of year is same logic as day of week. They both start at 0.
morpholux
 
Posts: 15
Joined: Tue May 06, 2014 3:27 pm


Return to TouchDesigner Documentation

Who is online

Users browsing this forum: No registered users and 1 guest