Description

When subtracting two date time sets to find the time span between them, the results are inconsistent. The results given give the total number of the unit measured for the time elapsed were as others only give the difference in their respective units of measure between the two sets of date time nodes.

In the attached image the result for hours will be 12 instead of 8772(Number of hours in a year +12).

Steps to Reproduce
  1. Download the attached project
  2. Open the project
  3. Play in Editor
  4. Press the '2' key to print out values
  5. Notice that the values read Days: 365 Hours: 12 Minutes: 0 Seconds: 0 Miliseconds: 0

Expected: The number of days would be 0 or the other units would measure out to a year (as can be seen with "Days")
Result: Days prints out the total number of days elapsed when subtracting two date times were as the other units only provide the results of subtraction from their own respective units (example: 13 hours - 1 hour = 12 and not the total number of hours in the year+ 12 (expected result for hours for the test 8772)).

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

1
Login to Vote

Won't Fix
CreatedMay 5, 2017
ResolvedAug 18, 2021
UpdatedAug 18, 2021