Date and Time Actions
XenoGuard's date and time ActionSteps are essential for the efficient handling of time data. In today's world of automation, such functions are indispensable for capturing, converting, and precisely measuring temporal data.
XenoGuard's capacity to perform accurate time measurements is advantageous in numerous situations, such as in process performance analysis or controlling time-critical tasks. The addition and subtraction of time values facilitate the easy calculation of time intervals and the identification of specific moments in time, whether in the future or the past.
In summary, these functions optimize and refine the automation capabilities of XenoGuard, making it easier for users to implement complex, time-dependent processes.
You can find the time actions in the folder Programming::Time:
XenoGuard integrates the following time actions:
Action | Description |
---|---|
Wait Milliseconds | This action pauses the execution of the script for the specified number of milliseconds. It is useful for creating delays or pauses between certain actions. |
Stopwatch Start | Starts a stopwatch, measuring the elapsed time since its start. This can be particularly useful for monitoring the duration of certain processes or actions. |
Stopwatch Stop | Stops the previously started stopwatch and returns the total elapsed time. This can be used, for example, to perform runtime analyses. |
DateTime Show | Displays the current date and time and formats the output. This can be helpful for inserting a timestamp or a date in reports, logs, or notifications. |
DateTime Subtract | Subtracts a specified date or time from another and returns the difference. This is suitable for calculating time intervals or differences. |
DateTime Offset | Shifts a date or time by a specified value. This can be used, for example, to adjust time zones or to add or remove hours, minutes, etc. |
DateTime To Ticks | Converts a date or time to ticks, where a tick represents the smallest unit of a time interval. This allows for precise time measurement and manipulation. |
DateTime From Ticks | Converts ticks back into a date or time. This is useful for converting stored or transmitted time data back into a human-readable format. |