Date - time
Good ....
Show a message and image according to the (simulated) time, i.e. the current time with the selected number of hours added
- Between 06:00:00 (included) and 10:00:00
- Text: Good morning
- Image /assets/dateTime/morning.png
- Text: Good morning
- Between 10:00:00 (included) and 21:00:00
- Text: Good day
- Image /assets/dateTime/day.png
- Text: Good day
- Between 21:00:00 (included) and 06:00:00
- Text: Good night
- Image /assets/dateTime/night.png
- Text: Good night
Show the (simulated) time on the display using the images /assets/display/numberX.svg
TIP: If your default browser language is English, use toLocaleTimeString('en-GB')
to easily convert the date/time to a HH:MM:SS format. For browsers in Dutch, toLocaleTimeString()
(without arguments) should do the job.