You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.
I'm doing some testing with the DateTimeSpan class and I've been having some issues with the calculations.
if a have the following
val startDate =DateTime.fromString("Mon, 01 Jan 2019 00:00:00 UTC").local
val endDate =DateTime.fromString("Sat, 01 Sep 2019 00:00:00 UTC").local
val span = (startDate until endDate).span
assertEquals("8", span.totalMonths) //Fails due to span calculation being '7M 4W 3D'
It fails because it's not calculating the 8 months difference there is between the two dates.
The text was updated successfully, but these errors were encountered:
Hi,
I'm doing some testing with the DateTimeSpan class and I've been having some issues with the calculations.
if a have the following
It fails because it's not calculating the 8 months difference there is between the two dates.
The text was updated successfully, but these errors were encountered: