Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:programmingblocks:time [2018/06/06 13:08] – [Blocks] kniwwelino | en:programmingblocks:time [2018/07/03 09:11] (current) – [Blocks] kniwwelino | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Time ===== | ||
+ | ==== Blocks ==== | ||
+ | |||
+ | === Wait a given number of seconds === | ||
+ | {{: | ||
+ | |||
+ | With this block, you can force Kniwwelino to wait the specified number of seconds before executing the next block(s). | ||
+ | |||
+ | \\ | ||
+ | === Wait a given number of milliseconds === | ||
+ | {{: | ||
+ | |||
+ | With this block, you can force Kniwwelino to wait the specified number of milliseconds before executing the next block(s). | ||
+ | |||
+ | \\ | ||
+ | === Wait a given number of microseconds === | ||
+ | {{: | ||
+ | |||
+ | With this block, you can force Kniwwelino to wait the specified number of microseconds before executing the next block(s). | ||
+ | |||
+ | \\ | ||
+ | === Get the current date/time in a given format === | ||
+ | {{: | ||
+ | |||
+ | This block returns the current date and/or time as a text in various formats. | ||
+ | |||
+ | Options: | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | === Get the current date/time field as number === | ||
+ | {{: | ||
+ | |||
+ | This block returns the current date and/or time as a integer number. | ||
+ | |||
+ | Options: | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | \\ | ||
+ | === Get the current elapsed time in seconds === | ||
+ | {{: | ||
+ | |||
+ | This block returns in seconds the time which is currently elapsed since the start of the Kniwwelino. | ||
+ | |||
+ | \\ | ||
+ | === Get the current elapsed time in milliseconds === | ||
+ | {{: | ||
+ | |||
+ | This block returns in milliseconds the time which is currently elapsed since the start of the Kniwwelino. | ||
+ | ==== Example ==== | ||
+ | The following example shows how you can use the '' | ||
+ | |||
+ | This approach allows you to create animations. | ||
+ | |||
+ | {{: |