DateTime
Time Difference
6min
This action computes the difference between two DateTime values. [hour, minute, second]
![Document image Document image](https://images.archbee.com/pD-o7nZLwDiSBwGlsHA9q/RawnYz2DwRIXXnND7AQoI_tdy.png?format=webp)
- [ I ] Unit of time: Drop-down to choose which unit of time will be used for measuring the difference.
- Hour
- Minute
- Second
- [ I ] First Datetime: DateTime representing the minuend.
- [ I ] Second Datetime: DateTime representing the subtrahend.
- [ O ] Difference: Integer equal to the result of First Datetime - Second Datetime in Unit of time.
![Document image Document image](https://images.archbee.com/pD-o7nZLwDiSBwGlsHA9q/jFmRi56eIgu52MNqvOqXQ_tdy.png?format=webp)
- Drag action onto canvas to get familiarized with it.
![Document image Document image](https://images.archbee.com/pD-o7nZLwDiSBwGlsHA9q/4p2tiPNtaaXaVhL1bDiD8_tdy.png?format=webp)
- Declare some variables to be used with the action
![Document image Document image](https://images.archbee.com/pD-o7nZLwDiSBwGlsHA9q/3EHy4mvgUnf20N09bG7a6_tdy.png?format=webp)
- Assign the newly created variables.
- Save & Run the process and then Check Instance to see the output.
![Document image Document image](https://images.archbee.com/pD-o7nZLwDiSBwGlsHA9q/YTFyi2PWeAv_1_5Bwup8w_tdy.png?format=webp)
- Computing the time difference between two DateTime values.
- If Second Datetime is lesser than First Datetime, the Difference will be negative.
Updated 31 Aug 2023
![Doc contributor](https://s3.amazonaws.com/archbee-animals/koala.png)
Did this page help you?