Hello I’m trying to do a programming that make the layout change (like the color value, for example) depending of the real world time using the date plugin.
Develop games in your browser. Powerful, performant & highly capable.
Date.GetHours(Date.Now) will return the number or hours 0..23
For example, this is night time from 10pm to 6am:
Date.GetHours(Date.Now)>=22 or Date.GetHours(Date.Now)<=6