Time blocks are used to set and measure time and they can connect only to time and integer variables. To use these blocks we need to first attach an attribute to it before connecting to other blocks.
Get amount of time block
This block is used when you want to get a specific amount of time. For example, the hours of a day, seconds of a minute, days of a month, etc. Clicking the downward arrow on the block, will reveal the different variants of amount time. In our example, we want to get the amount of time an employee has worked in a day. So, we get the amount of time from the beginning of the day till when he started work and subtract it from the amount of time from the beginning of the day till when he ended.
Plus and set amount of time block
This block is best used when you want to add some amount of time to a pre-existing point in time. To be more practical, the example below calculates the amount a time an employee should work in a day. In this case, he/she should work for 8 hours. So, we get the specific point in time when he/she starts work and add 8 hours to it.
Copy and set amount of time block
This block is used when you want to copy a specific point in time and link it to a custom predefined time. In our example, we want to calculate when employees should go to work the next day depending on how many hours they work today. If they work for 8 hours today, then their starting time tomorrow will be at 10 am. So, the amount of hours worked the previous day will determine how early or late they go to work.