Date and time
This block is used to assign to a variable a value of the current date and time according to a preset template.
A value can be assigned to a variable in any format according to the JAVA’s syntax of formatting dates. To fill the ‘Template of date/time’ fields use the symbols of this syntax.
The template specifies the date/time in the format:
- dd — day;
- MM — month;
- yyyy — year;
- HH — watch;
- ss — seconds;
- mm — minutes;
- w – week.
For instance, if you need the robot to pronounce what the year is now then the template should be in the ‘yyyy’ format. And if you need the robot to pronounce the current week number in the year then the template should be ‘w’.
On this page