{"id":793,"date":"2018-10-04T13:52:21","date_gmt":"2018-10-04T13:52:21","guid":{"rendered":"https:\/\/www.courses.tegabrain.com\/cc18\/?page_id=793"},"modified":"2018-10-04T13:54:57","modified_gmt":"2018-10-04T13:54:57","slug":"time-functions","status":"publish","type":"page","link":"https:\/\/www.courses.tegabrain.com\/cc18\/time-functions\/","title":{"rendered":"Time Functions"},"content":{"rendered":"<p>Processing has the following inbuilt time functions:<\/p>\n<p><a href=\"https:\/\/processing.org\/reference\/millis_.html\">millis();<\/a><\/p>\n<p>This returns the milliseconds that have passed since the sketch started. Recall that 1000 milliseconds = 1 second.<\/p>\n<p><a href=\"https:\/\/processing.org\/reference\/second_.html\">second();<\/a><\/p>\n<p>This returns the seconds of the time on your computer clock. Eg if it is 20 seconds past the minute, seconds will return the value 20. It therefore varies from 0-59<\/p>\n<p><a href=\"https:\/\/processing.org\/reference\/minute_.html\">minute();<\/a><\/p>\n<p>This returns the minutes of the time on your computer clock. Eg if it is 20 minutes past the minute, minutes will return the value 20. It therefore varies from 0-59.<\/p>\n<p><a href=\"https:\/\/processing.org\/reference\/hour_.html\">hour();<\/a><\/p>\n<p>This returns the hour of the time on your computer clock. Eg if it is 3pm , hour will return the value 15. It therefore varies from 1-23.<\/p>\n<p>Take a look at the documentation for <a href=\"https:\/\/processing.org\/reference\/day_.html\">day<\/a>, <a href=\"https:\/\/processing.org\/reference\/month_.html\">month<\/a>, <a href=\"https:\/\/processing.org\/reference\/year_.html\">year.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Processing has the following inbuilt time functions: millis(); This returns the milliseconds that have passed since the sketch started. Recall that 1000 milliseconds = 1 second. second(); This returns the seconds of the time on your computer clock. Eg if it is 20 seconds past the minute, seconds will return the value 20. It therefore<a class=\"more-link button\" href=\"https:\/\/www.courses.tegabrain.com\/cc18\/time-functions\/\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"class_list":["post-793","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/Paeb9f-cN","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/pages\/793","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/comments?post=793"}],"version-history":[{"count":2,"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/pages\/793\/revisions"}],"predecessor-version":[{"id":802,"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/pages\/793\/revisions\/802"}],"wp:attachment":[{"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/media?parent=793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}