Last Sunday had 23 hours due to the daylight saving time change. As a result some of my daily calculations are incorrect because they are made with an assumption of 24 hours.
I cannot find the method to calculate those 23 hours (25 in the case of the winter time change).
You can use the timezone function
BiasWindowsTimezonein my project at GitHub:VBA.Timezone-Windows
(module
WtziCore) to obtain the bias values for the start and the end time taking DST in account. Then, add the bias values to both date values and calculate the difference in hours:The timezone must be the literal of yours as found in the Windows Registry, for example
W. Europe(there is code as well to retrieve and list these), and using your Sunday date, you will get 23 hours: