Micro-Robotics logoProduct rangeVM2 controllersStarter kitsApplication boardsDisplay HardwareInterface ModulesFree Tools - overviewVenom LanguageVenomIDEGUI FrameworkLive Server DemoDesign ServiceSkill SetProductionCapabilitiesApplication StoriesVM2 vs. Raspberry Pi
Micro-Robotics icon Products submenu link

Dates and Times

Venom provides sophisticated tools for using real dates and times in your applications. Firstly, there is the built-in Real Time Clock Calendar, which is backed up by the VM2's battery when there is no power.

Secondly the DateTime object is a powerful date/time calculator that can process dates nearly 100 years into the future. For example it can tell you what day of the week it is on 15 January 2057: Make dt DateTime ;Create a DateTime object dt.Year := 2057 ;Set its year dt.Month := 1 ;Set its month dt.Day := 15 ;Set its day Print dt.DayOfWeek ;Print its day of the week 1 (The answer '1' means it's a Monday).

See the Venom Manuals for more details.